cmp.bidsappmanager.core module

Core module providing a run() command.

cmp.bidsappmanager.core.run(command, env=None, cwd=None)[source]

Function calls by CMP_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)