| Home | Trees | Indices | Help |
|
|---|
|
|
A wrapper to the standard library subprocess module.
This module allows you to avoid passing "sh" or "$SCHRODINGER/run" as arguments to subprocess.call() function. It automatically checks for executables in the $SCHRODINGER and $SCHRODINGER/utilities directories, and adds an interpreter to the command where appropriate.
A general limitation of this module is that the subprocess commands must be specified as lists of strings. This is a conscious design decision meant to avoid issues with quoting arguments that contain spaces.
Copyright Schrodinger, LLC. All rights reserved.
|
|||
|
|||
|
|||
|
|||
|
|||
__doc__ =
|
|||
PIPE = -1
|
|||
STDOUT = -2
|
|||
__package__ = Nonehash(x) |
|||
|
|||
If the program name (cmd[0]) doesn't exist as a file and isn't an absolute path, look for the program in the $SCHRODINGER and $SCHRODINGER/utilities directories. If the program executable has .pl or .py or .sh extension, and the appropriate interpreter is not specified '$SCHRODINGER/run' is added as interpreter for .pl or .py extensions and 'sh' for .sh extension. If the interpreter is specified as a simple 'perl' or 'python' the command is not modified. Return a list of command line arguments that can be used to launch the command.
|
Run a command with arguments. Look for executables in $SCHRODINGER and $SCHRODINGER/utilities, and provide an interpreter if needed.
|
A wrapper for the builtin subprocess module's Popen class. This function will return a subprocess Popen instance, passing all kwargs on to the underlying class. The only difference is that it will automatically look for executables in $SCHRODINGER and $SCHRODINGER/utilities, and provide an interpreter if needed.
|
|
|||
__doc__
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Mar 29 12:43:10 2012 | http://epydoc.sourceforge.net |