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

Module utils

Utility functions for finding python packages in product directories.

Functions [hide private]
 
add_package_dir_to_path(path, product_dir_name, subdir='')
Adds product specific directory to __path__ or raises an ImportError if no such directory exists
 
find_product_package_dir(product_dir_name, subdir='')
Variables [hide private]
  __package__ = 'schrodinger.application'
Function Details [hide private]

add_package_dir_to_path(path, product_dir_name, subdir='')

 

Adds product specific directory to __path__ or raises an ImportError if no such directory exists

Parameters:
  • path (list of str) - __path__ of the calling module
  • product_dir_name (str) - The product subdirectory name of the SCHRODINGER directory, without the "-v*" version suffix (e.g. 'psp).
  • subdir (str) - Specifies the subdirectory 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').