Home
last modified time | relevance | path

Searched refs:init_path (Results 1 – 9 of 9) 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/perfetto/src/trace_processor/importers/proto/
Dheap_graph_tracker.cc628 PathFromRoot init_path; in BuildFlamegraph() local
630 FindPathFromRoot(*context_->storage, root, &init_path); in BuildFlamegraph()
635 std::vector<int32_t> node_to_cumulative_size(init_path.nodes.size()); in BuildFlamegraph()
636 std::vector<int32_t> node_to_cumulative_count(init_path.nodes.size()); in BuildFlamegraph()
638 for (size_t i = init_path.nodes.size() - 1; i > 0; --i) { in BuildFlamegraph()
639 const PathFromRoot::Node& node = init_path.nodes[i]; in BuildFlamegraph()
647 std::vector<FlamegraphId> node_to_id(init_path.nodes.size()); in BuildFlamegraph()
649 for (size_t i = 1; i < init_path.nodes.size(); ++i) { in BuildFlamegraph()
650 const PathFromRoot::Node& node = init_path.nodes[i]; in BuildFlamegraph()
/external/python/cpython3/Lib/test/
Dtest_pydoc.py730 init_path = os.path.join(test_dir, 'foomod42.py')
731 cached_path = importlib.util.cache_from_source(init_path)
732 with open(init_path, 'w') as fobj:
734 py_compile.compile(init_path)
735 synopsis = pydoc.synopsis(init_path, {})
751 init_path = os.path.join(test_dir, '__init__.py')
752 open(init_path, 'w').close()
754 os.remove(init_path)
948 init_path = os.path.join(pkgdir, '__init__.py')
949 with open(init_path, 'w') as fobj:
/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/python/cpython3/Lib/test/test_import/
D__init__.py1189 init_path = os.path.join(pkg_path, '__init__.py')
1190 with open(init_path, 'w') as f:
1196 return init_path, bar_path
1199 init_path, bar_path = self._setup_broken_package("", "1/0")
1209 init_path, bar_path = self._setup_broken_package("", "1/0")
1219 init_path, bar_path = self._setup_broken_package("1/0", "")
1226 self.assert_traceback(tb, [__file__, init_path])
1229 init_path, bar_path = self._setup_broken_package("1/0", "")
1236 self.assert_traceback(tb, [__file__, init_path])