schrodinger.utils.subproc module

A wrapper to the standard library subprocess module.

This module allows you to avoid passing “sh” or “$SCHRODINGER/run” as arguments to 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.