Lines Matching defs:sys
8 # partially initialised package would be present in sys.modules, those
13 import sys
19 _bootstrap._setup(sys, _imp)
31 sys.modules['importlib._bootstrap'] = _bootstrap
48 sys.modules['importlib._bootstrap_external'] = _bootstrap_external
67 sys.meta_path (where implemented)."""
68 for finder in sys.meta_path:
85 loader = sys.modules[name].__loader__
146 if sys.modules.get(name) is not module:
147 msg = "module {} not in sys.modules"
156 parent = sys.modules[parent_name]
158 msg = "parent {!r} not in sys.modules"
170 # The module may have replaced itself in sys.modules!
171 return sys.modules[name]