• Home
  • Raw
  • Download

Lines Matching refs:pathconfig

450 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()
636 if (pathconfig->prefix == NULL) { in calculate_set_prefix()
699 search_for_exec_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig, in search_for_exec_prefix() argument
706 if (pathconfig->home) { in search_for_exec_prefix()
708 wchar_t *delim = wcschr(pathconfig->home, DELIM); in search_for_exec_prefix()
715 if (safe_wcscpy(exec_prefix, pathconfig->home, exec_prefix_len) < 0) { in search_for_exec_prefix()
793 calculate_exec_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_exec_prefix() argument
800 status = search_for_exec_prefix(calculate, pathconfig, in calculate_exec_prefix()
841 _PyPathConfig *pathconfig) in calculate_set_exec_prefix() argument
854 pathconfig->exec_prefix = exec_prefix; in calculate_set_exec_prefix()
862 pathconfig->exec_prefix = _PyMem_RawWcsdup(separator); in calculate_set_exec_prefix()
863 if (pathconfig->exec_prefix == NULL) { in calculate_set_exec_prefix()
869 pathconfig->exec_prefix = _PyMem_RawWcsdup(calculate->exec_prefix_macro); in calculate_set_exec_prefix()
870 if (pathconfig->exec_prefix == NULL) { in calculate_set_exec_prefix()
956 calculate_program_impl(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_program_impl() argument
958 assert(pathconfig->program_full_path == NULL); in calculate_program_impl()
967 if (wcschr(pathconfig->program_name, SEP)) { in calculate_program_impl()
968 pathconfig->program_full_path = _PyMem_RawWcsdup(pathconfig->program_name); in calculate_program_impl()
969 if (pathconfig->program_full_path == NULL) { in calculate_program_impl()
982 pathconfig->program_full_path = abs_path; in calculate_program_impl()
989 status = calculate_which(calculate->path_env, pathconfig->program_name, in calculate_program_impl()
995 pathconfig->program_full_path = abs_path; in calculate_program_impl()
1001 pathconfig->program_full_path = _PyMem_RawWcsdup(L""); in calculate_program_impl()
1002 if (pathconfig->program_full_path == NULL) { in calculate_program_impl()
1011 calculate_program(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_program() argument
1015 status = calculate_program_impl(calculate, pathconfig); in calculate_program()
1020 if (pathconfig->program_full_path[0] != '\0') { in calculate_program()
1024 if (!_Py_isabs(pathconfig->program_full_path)) { in calculate_program()
1025 status = absolutize(&pathconfig->program_full_path); in calculate_program()
1037 status = add_exe_suffix(&pathconfig->program_full_path); in calculate_program()
1095 calculate_argv0_path_framework(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_argv0_path_framework() argument
1154 calculate->argv0_path = _PyMem_RawWcsdup(pathconfig->program_full_path); in calculate_argv0_path_framework()
1178 _PyPathConfig *pathconfig) in calculate_argv0_path() argument
1182 calculate->argv0_path = _PyMem_RawWcsdup(pathconfig->program_full_path); in calculate_argv0_path()
1188 status = calculate_argv0_path_framework(calculate, pathconfig); in calculate_argv0_path()
1337 _PyPathConfig *pathconfig) in calculate_module_search_path() argument
1419 pathconfig->module_search_path = buf; in calculate_module_search_path()
1491 calculate_path(PyCalculatePath *calculate, _PyPathConfig *pathconfig) in calculate_path() argument
1495 if (pathconfig->program_full_path == NULL) { in calculate_path()
1496 status = calculate_program(calculate, pathconfig); in calculate_path()
1502 status = calculate_argv0_path(calculate, pathconfig); in calculate_path()
1514 status = calculate_prefix(calculate, pathconfig); in calculate_path()
1524 status = calculate_exec_prefix(calculate, pathconfig); in calculate_path()
1536 if (pathconfig->module_search_path == NULL) { in calculate_path()
1537 status = calculate_module_search_path(calculate, pathconfig); in calculate_path()
1543 if (pathconfig->prefix == NULL) { in calculate_path()
1544 status = calculate_set_prefix(calculate, pathconfig); in calculate_path()
1550 if (pathconfig->exec_prefix == NULL) { in calculate_path()
1551 status = calculate_set_exec_prefix(calculate, pathconfig); in calculate_path()
1591 _PyPathConfig_Calculate(_PyPathConfig *pathconfig, const PyConfig *config) in _PyPathConfig_Calculate() argument
1602 status = calculate_path(&calculate, pathconfig); in _PyPathConfig_Calculate()
1608 assert(wcslen(pathconfig->program_full_path) == 0 in _PyPathConfig_Calculate()
1609 || _Py_isabs(pathconfig->program_full_path)); in _PyPathConfig_Calculate()