run_shell_command

pyapprox.models.wrappers.run_shell_command(shell_command, opts={})[source]

Execulte a shell command.

Parameters
shell_commandstring

The command that you want executed

output_verbosityinteger (default=0)

0 - supress all model output 1 - write output to file 2 - write output to stdout

filenamestring (default=None)

The filename to which the output of the shell command is written. A file is only written if output_verbosity=1. If output_verbosity=1 and filename is None then filename = shell_command.out

envos.environ (default=None)

Mapping that defines the environment variables for the new process; these are used instead of inheriting the current process environment, which is the default behavior.