/third_party/python/Lib/test/test_importlib/ |
H A D | test_namespace_pkgs.py | 251 self.assertEqual(len(parent.__path__), 2) 252 self.assertEqual(len(parent.child.__path__), 2) 254 self.assertEqual(len(parent.__path__), 2) 255 self.assertEqual(len(parent.child.__path__), 2) 263 self.assertEqual(len(parent.__path__), 2) 264 self.assertEqual(len(parent.child.__path__), 2) 268 self.assertEqual(len(parent.__path__), 2) 269 self.assertEqual(len(parent.child.__path__), 2) 271 self.assertEqual(len(parent.__path__), 2) 272 self.assertEqual(len(parent.child.__path__), [all...] |
H A D | test_abc.py | 477 self.assertIsNotNone(module.__path__) 478 self.assertIsNotNone(module.__path__, 800 module.__path__ = [] 846 # __path__ (for packages), __file__, and __cached__. 855 self.assertEqual(module.__path__, [os.path.dirname(self.path)]) 859 # __package__ needs to be set, while __path__ is set on if the module 870 self.assertFalse(hasattr(module, '__path__'))
|
/third_party/python/Lib/ |
H A D | modulefinder.py | 22 # handle __path__ modifications packages make at runtime. Therefore there 95 self.__path__ = path 109 if self.__path__ is not None: 110 s = s + ", %r" % (self.__path__,) 169 if m.__path__: 180 if caller.__path__: 193 if caller.__path__: 265 if not m.__path__: 275 for dir in m.__path__: 304 if parent and parent.__path__ i [all...] |
H A D | pkgutil.py | 64 modules!) on the given path, in order to access the __path__ 79 walk_packages(ctypes.__path__, ctypes.__name__+'.') 102 path = getattr(sys.modules[info.name], '__path__', None) or [] 448 # Get the containing package's __path__ 451 path = getattr(pkg, '__path__', None) 466 (if any) is imported, in order to establish the package __path__. 512 __path__ = extend_path(__path__, __name__) 516 __path__. This is useful if one wants to distribute different 551 search_path = sys.modules[parent_package].__path__ [all...] |
/third_party/python/Lib/importlib/ |
H A D | _bootstrap.py | 332 not. On modules this is reflected by the `__path__` attribute. 482 submodule_search_locations = list(module.__path__) 541 # __path__ 542 if override or getattr(module, '__path__', None) is None: 544 # XXX We should extend __path__ if it's already a list. 546 module.__path__ = spec.submodule_search_locations 651 # Since module.__path__ may not line up with 655 if not hasattr(module, '__path__'): 836 ispkg = hasattr(module, '__path__') 843 __path__ [all...] |
H A D | __init__.py | 162 pkgpath = parent.__path__
|
H A D | util.py | 94 parent = __import__(parent_name, fromlist=['__path__']) 96 parent_path = parent.__path__ 99 f"__path__ attribute not found on {parent_name!r} " 158 if not hasattr(module, '__path__'):
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
H A D | __init__.py | 37 __path__ = __import__('pkgutil').extend_path(__path__, __name__) variable
|
/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | __init__.py | 4 __path__ = __import__('pkgutil').extend_path(__path__, __name__) variable
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/ |
H A D | __init__.py | 4 __path__ = __import__('pkgutil').extend_path(__path__, __name__) variable
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/ |
H A D | __init__.py | 4 __path__ = __import__('pkgutil').extend_path(__path__, __name__) variable
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/ |
H A D | __init__.py | 4 __path__ = __import__('pkgutil').extend_path(__path__, __name__) variable
|
/third_party/protobuf/python/google/ |
H A D | __init__.py | 4 __path__ = __import__('pkgutil').extend_path(__path__, __name__) variable
|
/third_party/protobuf/python/google/protobuf/ |
H A D | __init__.py | 39 __path__ = __import__('pkgutil').extend_path(__path__, __name__) variable
|
/third_party/python/Lib/test/test_importlib/import_/ |
H A D | test_api.py | 67 mod.__path__ = ['XXX'] 78 mod.__path__ = ['XXX'] 90 mod.__path__ = []
|
H A D | test_meta_path.py | 56 """If there is no __path__ entry on the parent module, then 'path' is None 57 [no path]. Otherwise, the value for __path__ is passed in for the 'path' 90 importer.modules[pkg_name].__path__ = path
|
/third_party/python/Lib/test/ |
H A D | test_zipimport.py | 322 # there should be two entries in the __path__. 324 self.assertEqual(2, len(mod.__path__)) 325 p1, p2 = mod.__path__ 330 # Its __path__ is an iterable of 1 element from zip1. 332 self.assertEqual(1, len(mod.__path__)) 333 mpath = list(mod.__path__)[0].split('path1.zip' + os.sep)[1] 348 self.assertEqual(2, len(mod.__path__)) 349 p1, p2 = mod.__path__ 398 # there should be two entries in the __path__. 400 self.assertEqual(2, len(mod.__path__)) [all...] |
H A D | test_pkgutil.py | 375 fl.write('from pkgutil import extend_path\n__path__ = extend_path(__path__, __name__)\n') namespace 397 self.assertEqual(sorted(foo.__path__), 476 self.assertEqual(sorted(foo.__path__), 512 '__path__ = pkgutil.extend_path(__path__, __name__)') 523 self.assertEqual(len(pkg.__path__), 2) 526 self.assertEqual(len(pkg.subpkg.__path__), 2)
|
/third_party/python/Lib/test/libregrtest/ |
H A D | setup.py | 52 # Some times __path__ and __file__ are not absolute (e.g. while running from 56 # they are found in the CWD their __file__ and __path__ will be relative (this 59 # (site.py absolutize them), the __file__ and __path__ will be absolute too. 60 # Therefore it is necessary to absolutize manually the __file__ and __path__ of 63 if hasattr(module, '__path__'): 64 for index, path in enumerate(module.__path__): 65 module.__path__[index] = os.path.abspath(path)
|
/third_party/python/Tools/unicode/ |
H A D | listcodecs.py | 36 names = listcodecs(encodings.__path__[0])
|
/third_party/python/Tools/freeze/ |
H A D | makefreeze.py | 49 if m.__path__:
|
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | loaders.py | 467 mod.__path__ = [fspath(p) for p in path]
|
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | loaders.py | 446 mod.__path__ = path
|
/third_party/skia/third_party/externals/jinja2/ |
H A D | loaders.py | 467 mod.__path__ = [fspath(p) for p in path]
|
/third_party/jinja2/ |
H A D | loaders.py | 615 mod.__path__ = [os.fspath(p) for p in path]
|