Package schrodinger :: Package application :: Module utils
[hide private]
[frames] | no frames]

Module utils

Functions [hide private]
 
find_product_package_dir(product_dir_name, exec_dir=None, subdirs=None)
Find a product-specific python packages directory.
Variables [hide private]
  __package__ = 'schrodinger.application'
Function Details [hide private]

find_product_package_dir(product_dir_name, exec_dir=None, subdirs=None)

 

Find a product-specific python packages directory.

Returns the directory name or None if no such directory exists.

Parameters:
  • product_dir_name (str) - The product subdirectory name of the SCHRODINGER directory, without the "-v*" version suffix (e.g. 'psp).
  • exec_dir (str) - The name of the environment variable containing the product executable directory (e.g. 'PSP_EXEC'). If this is provided and the environment variable is defined, this will be used to find the product package directory. This will be faster than the directory globbing used when only product_dir_name is provided. If the package directory isn't found here, it falls back to the product_dir_name.
  • subdirs (list of str) - If provided, specifies the subdirectories of the product python packages directory that should be added to the product package directory. Use this if the product package directory has packages you want to ignore (e.g. 'schrodinger.application.prime.packages').