Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Variables
rosetta Namespace Reference

Variables

int stacklevel = 2
 
list pyrosetta_rosetta_modules = ["pyrosetta.rosetta"]
 
dictionary remapped_rosetta_modules = { m[len("pyrosetta."):] : sys.modules[m] for m in pyrosetta_rosetta_modules }
 

Detailed Description

Pyrosetta.rosetta top-level shim module.

Shim import module exposing the 'pyrosetta.rosetta' extension module as a
top-level 'rosetta' module. This hook imports the 'pyrosetta.rosetta' extension
module then inserts module entries into sys.path for the rosetta namespace.

Not that this technique will not cleanly support 'reload'-ing shim modules,
however as 'pyrosetta.rosetta' is a compiled extension module it does not
support 'reload'-ing in any case. Extension of this mirroring technique to
"reload"-able python extension modules would require implementation of a PEP302
compliant import hook.

Variable Documentation

list rosetta.pyrosetta_rosetta_modules = ["pyrosetta.rosetta"]
dictionary rosetta.remapped_rosetta_modules = { m[len("pyrosetta."):] : sys.modules[m] for m in pyrosetta_rosetta_modules }
int rosetta.stacklevel = 2