Home
last modified time | relevance | path

Searched refs:init_path (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/
Dtest_api.py273 init_path = os.path.join(cwd, name, '__init__.py')
274 cached = self.util.cache_from_source(init_path)
277 '__file__': init_path,
279 '__path__': [os.path.dirname(init_path)],
283 os.rename(path, init_path)
292 self.assertEqual(loader.path, init_path)
332 init_path = os.path.join(cwd, name, '__init__.py')
333 cached = self.util.cache_from_source(init_path)
336 '__file__': init_path,
338 '__path__': [os.path.dirname(init_path)],
[all …]
/external/python/cpython2/Lib/test/
Dtest_pydoc.py402 init_path = os.path.join(test_dir, 'dt.py')
403 with open(init_path, 'w') as fobj:
412 py_compile.compile(init_path)
413 synopsis = pydoc.synopsis(init_path, {})
420 init_path = os.path.join(test_dir, 'foomod42.py')
422 with open(init_path, 'w') as fobj:
424 py_compile.compile(init_path)
425 synopsis = pydoc.synopsis(init_path, {})
/external/selinux/libselinux/src/
Daudit2why.c192 static int __policy_init(const char *init_path) in __policy_init() argument
202 if (init_path) { in __policy_init()
203 strncpy(path, init_path, PATH_MAX-1); in __policy_init()
294 char *init_path = NULL; in init() local
299 if (!PyArg_ParseTuple(args,(char *)"|s:policy_init",&init_path)) in init()
301 result = __policy_init(init_path); in init()
/external/python/setuptools/
Dsetup.py30 init_path = os.path.join(here, cmd_module_path)
31 with open(init_path) as init_file:
/external/python/cpython3/Lib/
Dimp.py205 init_path = os.path.join(path, '__init__' + extension)
206 if os.path.exists(init_path):
207 path = init_path
/external/avb/examples/uefi/
Duefi_avb_ops.c408 EFI_DEVICE_PATH* init_path; in get_disk_block_io() local
410 init_path = DevicePathFromHandle(block_handle); in get_disk_block_io()
412 if (!init_path) { in get_disk_block_io()
416 walker_path = init_path; in get_disk_block_io()
420 err = walk_path(init_path, walker_path, &(*io_path), &path_bytes); in get_disk_block_io()
/external/perfetto/src/trace_processor/importers/proto/
Dheap_graph_tracker.cc865 PathFromRoot init_path; in BuildFlamegraph() local
867 FindPathFromRoot(context_->storage.get(), root, &init_path); in BuildFlamegraph()
870 std::vector<int32_t> node_to_cumulative_size(init_path.nodes.size()); in BuildFlamegraph()
871 std::vector<int32_t> node_to_cumulative_count(init_path.nodes.size()); in BuildFlamegraph()
873 for (size_t i = init_path.nodes.size() - 1; i > 0; --i) { in BuildFlamegraph()
874 const PathFromRoot::Node& node = init_path.nodes[i]; in BuildFlamegraph()
882 std::vector<FlamegraphId> node_to_id(init_path.nodes.size()); in BuildFlamegraph()
884 for (size_t i = 1; i < init_path.nodes.size(); ++i) { in BuildFlamegraph()
885 const PathFromRoot::Node& node = init_path.nodes[i]; in BuildFlamegraph()
/external/python/cpython3/Lib/test/
Dtest_pydoc.py731 init_path = os.path.join(test_dir, 'foomod42.py')
732 cached_path = importlib.util.cache_from_source(init_path)
733 with open(init_path, 'w') as fobj:
735 py_compile.compile(init_path)
736 synopsis = pydoc.synopsis(init_path, {})
752 init_path = os.path.join(test_dir, '__init__.py')
753 open(init_path, 'w').close()
755 os.remove(init_path)
949 init_path = os.path.join(pkgdir, '__init__.py')
950 with open(init_path, 'w') as fobj:
/external/python/cpython3/Lib/test/test_import/
D__init__.py1196 init_path = os.path.join(pkg_path, '__init__.py')
1197 with open(init_path, 'w') as f:
1203 return init_path, bar_path
1206 init_path, bar_path = self._setup_broken_package("", "1/0")
1216 init_path, bar_path = self._setup_broken_package("", "1/0")
1226 init_path, bar_path = self._setup_broken_package("1/0", "")
1233 self.assert_traceback(tb, [__file__, init_path])
1236 init_path, bar_path = self._setup_broken_package("1/0", "")
1243 self.assert_traceback(tb, [__file__, init_path])
/external/tensorflow/tensorflow/python/training/
Dcheckpoint_management_test.py583 init_path = init_ckpt.save(init_prefix)
593 init_fn=lambda: checkpoint.restore(init_path).run_restore_ops())