Home
last modified time | relevance | path

Searched refs:bytecode_path (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/test/test_importlib/source/
Dtest_file_loader.py393 bytecode_path = self.util.cache_from_source(mapping[name])
396 bytecode_path = make_legacy_pyc(mapping[name])
398 with open(bytecode_path, 'rb') as file:
401 with open(bytecode_path, 'wb') as file:
404 return bytecode_path
482 bytecode_path = self.manipulate_bytecode('_temp', mapping,
485 file_path = mapping['_temp'] if not del_source else bytecode_path
489 self.assertEqual(cm.exception.path, bytecode_path)
493 bytecode_path = self.manipulate_bytecode('_temp', mapping,
496 file_path = mapping['_temp'] if not del_source else bytecode_path
[all …]
/third_party/python/Lib/importlib/
D_bootstrap_external.py491 def _get_sourcefile(bytecode_path): argument
498 if len(bytecode_path) == 0:
500 rest, _, extension = bytecode_path.rpartition('.')
502 return bytecode_path
504 source_path = source_from_cache(bytecode_path)
506 source_path = bytecode_path[:-1]
507 return source_path if _path_isfile(source_path) else bytecode_path
670 def _compile_bytecode(data, name=None, bytecode_path=None, source_path=None): argument
674 _bootstrap._verbose_message('code object from {!r}', bytecode_path)
679 raise ImportError('Non-code object in {!r}'.format(bytecode_path),
[all …]
/third_party/python/Tools/importbench/
Dimportbench.py83 bytecode_path = imp.cache_from_source(module.__file__)
84 if os.path.exists(bytecode_path):
85 os.unlink(bytecode_path)
/third_party/python/Lib/test/
Dtest_modulefinder.py385 bytecode_path = base_path + importlib.machinery.BYTECODE_SUFFIXES[0]
388 py_compile.compile(source_path, cfile=bytecode_path)
/third_party/python/Lib/test/test_importlib/
Dtest_abc.py732 self.bytecode_path = self.util.cache_from_source(self.path)
749 elif path == self.bytecode_path:
761 return path == self.bytecode_path
918 self.loader.bytecode_path = "<does not exist>"
921 bytecode_path = self.util.cache_from_source(self.path)
922 self.loader.get_data(bytecode_path)
951 self.loader.bytecode_path = "<does not exist>"
Dutil.py323 def ensure_bytecode_path(bytecode_path): argument
329 os.mkdir(os.path.dirname(bytecode_path))