cmtklib.process module
Module providing a run()
command using subprocess
.
- cmtklib.process.run(command, env=None, cwd=None)[source]
Function calls by
MainWindowHandler
to run datalad commands.It runs the command specified as input via
subprocess.run()
.- Parameters
command (string) – String containing the command to be executed (required)
env (os.environ) – Specify a custom os.environ
cwd (os.path) – Specify a custom current working directory
Examples
>>> cmd = 'datalad save' >>> run(cmd)