subprocessing – Make subprocesses as DiddiScript functions#

This library has functions to run processes, like if they were called from a terminal.

Functions#

run_command(*cmd)#
Parameters

cmd – Each part of the command.

Run cmd. It becomes a list of parts to run a command.

Example

For example, to run pip --version:

run_command("pip", "--version");
run_python_cmd(*cmd)#
Parameters

cmd – The arguments passed to Python.

New since 1.1.0.

Run the python command with arguments cmd. It uses sys.executable to run things.