schrodinger.scripts package¶
- class schrodinger.scripts.ScriptsImportLoader(original_loader, relname)¶
Bases:
LoaderA 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:
LoaderA 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)¶