Lines Matching defs:sys
10 import sys
102 path = getattr(sys.modules[info.name], '__path__', None) or []
112 or, if path is None, all top-level modules on sys.path.
199 the current sys.path, plus any modules that are frozen or built-in.
202 on sys.meta_path.
410 The returned finder is cached in sys.path_importer_cache
414 rescan of sys.path_hooks is necessary.
418 importer = sys.path_importer_cache[path_item]
420 for path_hook in sys.path_hooks:
423 sys.path_importer_cache.setdefault(path_item, importer)
437 finders (i.e. those on both sys.meta_path and sys.path_hooks).
455 yield from sys.meta_path
456 path = sys.path
468 if module_or_name in sys.modules:
469 module_or_name = sys.modules[module_or_name]
514 For each directory on sys.path that has a subdirectory that
532 It is assumed that sys.path is a sequence. Items of sys.path that
534 directories are ignored. Unicode items of sys.path that cause
551 search_path = sys.modules[parent_package].__path__
557 search_path = sys.path
587 sys.stderr.write("Can't open %s: %s\n" %
615 d = os.path.dirname(sys.modules[package].__file__)
629 mod = (sys.modules.get(package) or