Home
last modified time | relevance | path

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

/external/python/cpython3/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 …]
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py350 def _get_sourcefile(bytecode_path): argument
357 if len(bytecode_path) == 0:
359 rest, _, extension = bytecode_path.rpartition('.')
361 return bytecode_path
363 source_path = source_from_cache(bytecode_path)
365 source_path = bytecode_path[:-1]
366 return source_path if _path_isfile(source_path) else bytecode_path
523 def _compile_bytecode(data, name=None, bytecode_path=None, source_path=None): argument
527 _bootstrap._verbose_message('code object from {!r}', bytecode_path)
532 raise ImportError('Non-code object in {!r}'.format(bytecode_path),
[all …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dgenerator.py163 bytecode_path=None, for_blink=False, use_once_callback=False, argument
173 self.bytecode_path = bytecode_path
Dtemplate_expander.py20 mojo_generator.bytecode_path, "%s.zip" % mojo_generator.GetTemplatePrefix(
/external/python/cpython3/Lib/test/
Dtest_modulefinder.py305 bytecode_path = base_path + importlib.machinery.BYTECODE_SUFFIXES[0]
308 py_compile.compile(source_path, cfile=bytecode_path)
/external/python/cpython3/Tools/importbench/
Dimportbench.py83 bytecode_path = imp.cache_from_source(module.__file__)
84 if os.path.exists(bytecode_path):
85 os.unlink(bytecode_path)
/external/python/cpython3/Lib/test/test_importlib/
Dtest_abc.py710 self.bytecode_path = self.util.cache_from_source(self.path)
727 elif path == self.bytecode_path:
739 return path == self.bytecode_path
892 self.loader.bytecode_path = "<does not exist>"
895 bytecode_path = self.util.cache_from_source(self.path)
896 self.loader.get_data(bytecode_path)
925 self.loader.bytecode_path = "<does not exist>"
Dutil.py310 def ensure_bytecode_path(bytecode_path): argument
316 os.mkdir(os.path.dirname(bytecode_path))
/external/libchrome/mojo/public/tools/bindings/
Dmojom_bindings_generator.py208 variant=args.variant, bytecode_path=args.bytecode_path,
Dmojom.gni503 "--bytecode_path",
/external/libchrome/soong/
Dbindings_generator.go48 --bytecode_path=${templateDir}