Home
last modified time | relevance | path

Searched refs:pathconfig (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Modules/
Dgetpath.c450 search_for_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig, in search_for_prefix() argument
456 if (pathconfig->home) { in search_for_prefix()
458 if (safe_wcscpy(prefix, pathconfig->home, prefix_len) < 0) { in search_for_prefix()
570 calculate_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_prefix() argument
577 status = search_for_prefix(calculate, pathconfig, in calculate_prefix()
605 calculate_set_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_set_prefix() argument
621 pathconfig->prefix = prefix; in calculate_set_prefix()
628 pathconfig->prefix = _PyMem_RawWcsdup(separator); in calculate_set_prefix()
629 if (pathconfig->prefix == NULL) { in calculate_set_prefix()
635 pathconfig->prefix = _PyMem_RawWcsdup(calculate->prefix_macro); in calculate_set_prefix()
[all …]
/third_party/python/PC/
Dgetpathp.c492 get_program_full_path(_PyPathConfig *pathconfig) in get_program_full_path() argument
509 if (pathconfig->base_executable == NULL) { in get_program_full_path()
510 pathconfig->base_executable = PyMem_RawMalloc( in get_program_full_path()
512 if (pathconfig->base_executable == NULL) { in get_program_full_path()
516 status = canonicalize(pathconfig->base_executable, in get_program_full_path()
529 if (pathconfig->program_full_path == NULL) { in get_program_full_path()
530 pathconfig->program_full_path = PyMem_RawMalloc( in get_program_full_path()
532 if (pathconfig->program_full_path == NULL) { in get_program_full_path()
536 status = canonicalize(pathconfig->program_full_path, in get_program_full_path()
547 read_pth_file(_PyPathConfig *pathconfig, wchar_t *prefix, const wchar_t *path, in read_pth_file() argument
[all …]
/third_party/python/Python/
Dpathconfig.c144 pathconfig_set_from_config(_PyPathConfig *pathconfig, const PyConfig *config) in pathconfig_set_from_config() argument
151 PyMem_RawFree(pathconfig->module_search_path); in pathconfig_set_from_config()
152pathconfig->module_search_path = _PyWideStringList_Join(&config->module_search_paths, DELIM); in pathconfig_set_from_config()
153 if (pathconfig->module_search_path == NULL) { in pathconfig_set_from_config()
160 PyMem_RawFree(pathconfig->PATH_ATTR); \ in pathconfig_set_from_config()
161 pathconfig->PATH_ATTR = NULL; \ in pathconfig_set_from_config()
162 if (copy_wstr(&pathconfig->PATH_ATTR, config->CONFIG_ATTR) < 0) { \ in pathconfig_set_from_config()
272 config_init_module_search_paths(PyConfig *config, _PyPathConfig *pathconfig) in config_init_module_search_paths() argument
278 const wchar_t *sys_path = pathconfig->module_search_path; in config_init_module_search_paths()
335 pathconfig_init(_PyPathConfig *pathconfig, const PyConfig *config, in pathconfig_init() argument
[all …]
/third_party/python/Include/internal/
Dpycore_pathconfig.h52 _PyPathConfig *pathconfig,
/third_party/python/
DMakefile.pre.in368 Python/pathconfig.o \