cmtklib.process module

Module providing a run() command using subprocess., env=None, cwd=None)[source]

Function calls by MainWindowHandler to run datalad commands.

It runs the command specified as input via

  • 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


>>> cmd = 'datalad save'
>>> run(cmd)