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(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
enum.Enum
- EXEC = 'exec'¶
- LIB = 'lib'¶
- DATA = 'data'¶
- schrodinger.job.util.hunt(product, dir=DirectoryType.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