schrodinger.job.util module¶
Contains a utility to find a product within a SCHRODINGER directory.
@copyright: Schrodinger, LLC. All rights reserved.
-
class
schrodinger.job.util.DirectoryType¶ Bases:
enum.EnumAn enumeration.
-
EXEC= 'exec'¶
-
LIB= 'lib'¶
-
DATA= 'data'¶
-
-
schrodinger.job.util.hunt(product, dir=<DirectoryType.EXEC: 'exec'>)¶ Look for the exec, lib, or data directory for a given Schrodinger product.
Parameters: dir (DirectoryType) – The type of directory to find; must be ‘exec’, ‘lib’, or ‘data’ and defaults to ‘exec’. Returns: The executable, lib, or data directory of the desired product. If no directory is found, the empty string is returned. Return type: str