schrodinger.scripts package

class schrodinger.scripts.ScriptsImportLoader(original_loader, relname)

Bases: Loader

A module loader that ensures modules imported via the schrodinger.scripts namespace are also cached via their relative names. The actual loading is delegated to the original loader.

__init__(original_loader, relname)
create_module(spec)

Return a module to initialize and into which to load.

This method should raise ImportError if anything prevents it from creating a new module. It may return None to indicate that the spec should create the new module.

exec_module(module)
class schrodinger.scripts.CachedAliasLoader(original_module)

Bases: Loader

A loader for a module that is already in sys.modules under a different name. It prevents re-execution by returning the cached module directly.

__init__(original_module)
create_module(spec)

Return a module to initialize and into which to load.

This method should raise ImportError if anything prevents it from creating a new module. It may return None to indicate that the spec should create the new module.

exec_module(module)
class schrodinger.scripts.ScriptsImportFinder

Bases: MetaPathFinder

A module finder that redirects imports from schrodinger.scripts namespace to the physical files in mmshare/python/scripts directory.

__init__()
find_spec(fullname, path, target=None)