• Home
  • Raw
  • Download

Lines Matching refs:pathconfig

493 get_program_full_path(_PyPathConfig *pathconfig)  in get_program_full_path()  argument
510 if (pathconfig->base_executable == NULL) { in get_program_full_path()
511 pathconfig->base_executable = PyMem_RawMalloc( in get_program_full_path()
513 if (pathconfig->base_executable == NULL) { in get_program_full_path()
517 status = canonicalize(pathconfig->base_executable, in get_program_full_path()
530 if (pathconfig->program_full_path == NULL) { in get_program_full_path()
531 pathconfig->program_full_path = PyMem_RawMalloc( in get_program_full_path()
533 if (pathconfig->program_full_path == NULL) { in get_program_full_path()
537 status = canonicalize(pathconfig->program_full_path, in get_program_full_path()
548 read_pth_file(_PyPathConfig *pathconfig, wchar_t *prefix, const wchar_t *path, in read_pth_file() argument
563 pathconfig->isolated = 1; in read_pth_file()
564 pathconfig->site_import = 0; in read_pth_file()
593 pathconfig->site_import = 1; in read_pth_file()
648 if (pathconfig->module_search_path == NULL) { in read_pth_file()
649 pathconfig->module_search_path = _PyMem_RawWcsdup(buf); in read_pth_file()
650 if (pathconfig->module_search_path == NULL) { in read_pth_file()
670 const _PyPathConfig *pathconfig) in get_pth_filename() argument
678 if (pathconfig->program_full_path[0] && in get_pth_filename()
679 !change_ext(filename, pathconfig->program_full_path, L"._pth") && in get_pth_filename()
689 calculate_pth_file(PyCalculatePath *calculate, _PyPathConfig *pathconfig, in calculate_pth_file() argument
694 if (!get_pth_filename(calculate, filename, pathconfig)) { in calculate_pth_file()
698 return read_pth_file(pathconfig, prefix, filename, found); in calculate_pth_file()
776 _PyPathConfig *pathconfig, in calculate_module_search_path() argument
950 pathconfig->module_search_path = start_buf; in calculate_module_search_path()
956 calculate_path(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_path() argument
960 status = get_program_full_path(pathconfig); in calculate_path()
969 wcscpy_s(argv0_path, MAXPATHLEN+1, pathconfig->program_full_path); in calculate_path()
977 status = calculate_pth_file(calculate, pathconfig, prefix, &pth_found); in calculate_path()
997 if (change_ext(zip_path, pathconfig->program_full_path, L".zip")) { in calculate_path()
1004 if (pathconfig->module_search_path == NULL) { in calculate_path()
1005 status = calculate_module_search_path(calculate, pathconfig, in calculate_path()
1013 if (pathconfig->prefix == NULL) { in calculate_path()
1014 pathconfig->prefix = _PyMem_RawWcsdup(prefix); in calculate_path()
1015 if (pathconfig->prefix == NULL) { in calculate_path()
1019 if (pathconfig->exec_prefix == NULL) { in calculate_path()
1020 pathconfig->exec_prefix = _PyMem_RawWcsdup(prefix); in calculate_path()
1021 if (pathconfig->exec_prefix == NULL) { in calculate_path()
1031 calculate_init(PyCalculatePath *calculate, _PyPathConfig *pathconfig, in calculate_init() argument
1034 calculate->home = pathconfig->home; in calculate_init()
1079 _PyPathConfig_Calculate(_PyPathConfig *pathconfig, const PyConfig *config) in _PyPathConfig_Calculate() argument
1085 status = calculate_init(&calculate, pathconfig, config); in _PyPathConfig_Calculate()
1090 status = calculate_path(&calculate, pathconfig); in _PyPathConfig_Calculate()