• Home
  • Raw
  • Download

Lines Matching refs:pathconfig

2788 @@ -478,6 +487,7 @@ search_for_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,
2796 @@ -502,6 +512,7 @@ search_for_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,
2804 @@ -528,6 +539,7 @@ search_for_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,
2812 @@ -551,6 +563,7 @@ search_for_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,
2820 @@ -610,6 +623,11 @@ calculate_set_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
2832 @@ -625,7 +643,11 @@ calculate_set_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
2837 + pathconfig->prefix = _PyMem_RawWcsdup(drive_root);
2839 pathconfig->prefix = _PyMem_RawWcsdup(separator);
2841 if (pathconfig->prefix == NULL) {
2852 @@ -730,6 +753,7 @@ search_for_exec_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,
2860 @@ -804,6 +828,7 @@ calculate_exec_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
2868 @@ -836,6 +861,47 @@ calculate_exec_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
2915 _PyPathConfig *pathconfig)
2934 + pathconfig->exec_prefix = _PyMem_RawWcsdup(drive_root);
2936 pathconfig->exec_prefix = _PyMem_RawWcsdup(separator);
2938 if (pathconfig->exec_prefix == NULL) {
2941 @@ -964,13 +1040,22 @@ calculate_program_impl(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
2945 - if (wcschr(pathconfig->program_name, SEP)) {
2946 + if (wcschr(pathconfig->program_name, Py_GetSepW(pathconfig->program_name))) {
2947 pathconfig->program_full_path = _PyMem_RawWcsdup(pathconfig->program_name);
2948 if (pathconfig->program_full_path == NULL) {
2954 + else if(pathconfig->program_full_path == NULL) {
2955 + pathconfig->program_full_path = GetWindowsModulePaths();
2956 + if (pathconfig->program_full_path == NULL) {
2965 @@ -1007,7 +1092,7 @@ calculate_program_impl(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
2968 /* Calculate pathconfig->program_full_path */
2971 calculate_program(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
2981 _PyPathConfig *pathconfig)
3042 pathconfig->module_search_path = buf;
3078 @@ -1492,6 +1599,8 @@ calculate_path(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
3084 if (pathconfig->program_full_path == NULL) {
3085 status = calculate_program(calculate, pathconfig);
3087 @@ -1526,6 +1635,36 @@ calculate_path(PyCalculatePath *calculate, _PyPathConfig *pathconfig)
3096 + module_path = calculate->dll_path[0] ? calculate->dll_path : pathconfig->program_full_path;
3124 @@ -1592,6 +1731,7 @@ _PyPathConfig_Calculate(_PyPathConfig *pathconfig, const PyConfig *config)
9547 diff --git a/Python/pathconfig.c b/Python/pathconfig.c
9549 --- a/Python/pathconfig.c
9550 +++ b/Python/pathconfig.c