Lines Matching refs:pathconfig
492 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
562 pathconfig->isolated = 1; in read_pth_file()
563 pathconfig->site_import = 0; in read_pth_file()
592 pathconfig->site_import = 1; in read_pth_file()
647 if (pathconfig->module_search_path == NULL) { in read_pth_file()
648 pathconfig->module_search_path = _PyMem_RawWcsdup(buf); in read_pth_file()
649 if (pathconfig->module_search_path == NULL) { in read_pth_file()
669 const _PyPathConfig *pathconfig) in get_pth_filename() argument
677 if (pathconfig->program_full_path[0] && in get_pth_filename()
678 !change_ext(filename, pathconfig->program_full_path, L"._pth") && in get_pth_filename()
688 calculate_pth_file(PyCalculatePath *calculate, _PyPathConfig *pathconfig, in calculate_pth_file() argument
693 if (!get_pth_filename(calculate, filename, pathconfig)) { in calculate_pth_file()
697 return read_pth_file(pathconfig, prefix, filename, found); in calculate_pth_file()
775 _PyPathConfig *pathconfig, in calculate_module_search_path() argument
949 pathconfig->module_search_path = start_buf; in calculate_module_search_path()
955 calculate_path(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_path() argument
959 status = get_program_full_path(pathconfig); in calculate_path()
968 wcscpy_s(argv0_path, MAXPATHLEN+1, pathconfig->program_full_path); in calculate_path()
976 status = calculate_pth_file(calculate, pathconfig, prefix, &pth_found); in calculate_path()
996 if (change_ext(zip_path, pathconfig->program_full_path, L".zip")) { in calculate_path()
1003 if (pathconfig->module_search_path == NULL) { in calculate_path()
1004 status = calculate_module_search_path(calculate, pathconfig, in calculate_path()
1012 if (pathconfig->prefix == NULL) { in calculate_path()
1013 pathconfig->prefix = _PyMem_RawWcsdup(prefix); in calculate_path()
1014 if (pathconfig->prefix == NULL) { in calculate_path()
1018 if (pathconfig->exec_prefix == NULL) { in calculate_path()
1019 pathconfig->exec_prefix = _PyMem_RawWcsdup(prefix); in calculate_path()
1020 if (pathconfig->exec_prefix == NULL) { in calculate_path()
1030 calculate_init(PyCalculatePath *calculate, _PyPathConfig *pathconfig, in calculate_init() argument
1033 calculate->home = pathconfig->home; in calculate_init()
1078 _PyPathConfig_Calculate(_PyPathConfig *pathconfig, const PyConfig *config) in _PyPathConfig_Calculate() argument
1084 status = calculate_init(&calculate, pathconfig, config); in _PyPathConfig_Calculate()
1089 status = calculate_path(&calculate, pathconfig); in _PyPathConfig_Calculate()