Home
last modified time | relevance | path

Searched refs:base_prefix (Results 1 – 25 of 25) sorted by relevance

/third_party/ltp/testcases/lib/
Dtst_net_vars.c446 unsigned int base_prefix = is_ipv6 ? BASE_IPV6_PREFIX : in check_prefix_range() local
450 if (prefix < base_prefix || (is_ipv6 && prefix == 128) || in check_prefix_range()
458 base_prefix, max_prefix); in check_prefix_range()
492 unsigned int base_prefix = is_ipv6 ? BASE_IPV6_PREFIX : in round_down_prefix() local
495 return prefix / base_prefix * base_prefix; in round_down_prefix()
/third_party/python/Lib/test/
Dtest_sysconfig.py286 adapt = sys.base_prefix != sys.base_exec_prefix
290 global_path = global_path.replace(sys.exec_prefix, sys.base_prefix)
291 base = base.replace(sys.exec_prefix, sys.base_prefix)
292 elif sys.base_prefix != sys.prefix:
295 global_path = global_path.replace(sys.base_prefix, sys.prefix)
296 base = base.replace(sys.base_prefix, sys.prefix)
D_test_embed_set_config.py212 base_prefix="base_prefix",
226 base_prefix=None,
229 self.assertEqual(sys.base_prefix, "prefix")
Dtest_cmd.py229 tracer=trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,],
Dtest_doctest.py3137 tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,],
Dtest_venv.py32 sys.prefix == sys.base_prefix
193 ('base_prefix', sys.base_prefix),
Dtest_trace.py381 tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,
Dtest_sys.py530 self.assertIsInstance(sys.base_prefix, str)
687 @unittest.skipIf(sys.base_prefix != sys.prefix,
Dtest_subprocess.py485 @unittest.skipIf(sys.base_prefix != sys.prefix,
493 @unittest.skipIf(sys.base_prefix != sys.prefix,
/third_party/python/Include/cpython/
Dinitconfig.h190 wchar_t *base_prefix; member
/third_party/python/Lib/distutils/tests/
Dtest_dist.py110 with mock.patch.multiple(sys, prefix='/a', base_prefix='/a') as values:
139 with mock.patch.multiple(sys, prefix='/a', base_prefix='/b') as values:
/third_party/python/Python/
Dpathconfig.c444 if (config->base_prefix == NULL && config->prefix != NULL) { in _PyConfig_InitPathConfig()
445 if (copy_wstr(&config->base_prefix, config->prefix) < 0) { in _PyConfig_InitPathConfig()
Dinitconfig.c668 CLEAR(config->base_prefix); in PyConfig_Clear()
906 COPY_WSTR_ATTR(base_prefix); in _PyConfig_Copy()
1009 SET_ITEM_WSTR(base_prefix); in _PyConfig_AsDict()
1310 GET_WSTR_OPT(base_prefix); in _PyConfig_FromDict()
3033 DUMP_SYS(base_prefix); in _Py_DumpPathConfig()
Dsysmodule.c2962 COPY_WSTR("base_prefix", config->base_prefix); in _PySys_UpdateConfig()
/third_party/python/Doc/library/
Dvenv.rst58 environment, whereas :attr:`sys.base_prefix` and
62 :attr:`sys.base_prefix` and :attr:`sys.exec_prefix` is the same as
414 elif not hasattr(sys, 'base_prefix'):
Dsite.rst45 it is also checked for site-packages (sys.base_prefix and
Dgettext.rst727 defaults; instead its default is :file:`{sys.base_prefix}/share/locale` (see
728 :data:`sys.base_prefix`). For this reason, it is always best to call
Dsys.rst127 virtual environment, whereas :data:`base_prefix` and
134 .. data:: base_prefix
140 point to the virtual environment, whereas :data:`base_prefix` and
1227 available, via :data:`base_prefix`.
/third_party/python/Lib/
Dsysconfig.py127 _BASE_PREFIX = os.path.normpath(sys.base_prefix)
Dgettext.py62 _default_localedir = os.path.join(sys.base_prefix, 'share', 'locale')
/third_party/python/Lib/idlelib/
Deditor.py77 dochome = os.path.join(sys.base_prefix, 'Doc', 'index.html')
88 chmfile = os.path.join(sys.base_prefix, 'Doc',
94 dochome = os.path.join(sys.base_prefix,
/third_party/python/Doc/c-api/
Dinit_config.rst557 .. c:member:: wchar_t* base_prefix
559 :data:`sys.base_prefix`.
1345 * :c:member:`PyConfig.base_prefix`
1368 If :c:member:`~PyConfig.base_prefix` or :c:member:`~PyConfig.base_exec_prefix`
/third_party/python/Lib/distutils/
Ddist.py385 if sys.prefix != sys.base_prefix:
/third_party/python/Doc/tutorial/
Dmodules.rst315 'api_version', 'argv', 'audit', 'base_exec_prefix', 'base_prefix',
/third_party/python/
Dsetup.py838 os.path.normpath(sys.base_prefix) != '/usr' and