Searched refs:program_full_path (Results 1 – 6 of 6) sorted by relevance
/third_party/python/Python/ |
D | pathconfig.c | 54 CLEAR(config->program_full_path); in pathconfig_clear() 82 COPY_ATTR(program_full_path); in pathconfig_copy() 167 COPY_CONFIG(program_full_path, executable); in pathconfig_set_from_config() 217 SET_ITEM_STR(program_full_path); in _PyPathConfig_AsDict() 401 COPY_ATTR(program_full_path, executable); in config_init_pathconfig() 548 _Py_SetProgramFullPath(const wchar_t *program_full_path) in _Py_SetProgramFullPath() argument 550 if (program_full_path == NULL || program_full_path[0] == L'\0') { in _Py_SetProgramFullPath() 557 PyMem_RawFree(_Py_path_config.program_full_path); in _Py_SetProgramFullPath() 558 _Py_path_config.program_full_path = _PyMem_RawWcsdup(program_full_path); in _Py_SetProgramFullPath() 562 if (_Py_path_config.program_full_path == NULL) { in _Py_SetProgramFullPath() [all …]
|
D | initconfig.c | 1570 const wchar_t *program_full_path = _Py_path_config.program_full_path; in config_init_executable() local 1571 if (program_full_path != NULL) { in config_init_executable() 1574 program_full_path); in config_init_executable()
|
/third_party/python/PC/ |
D | getpathp.c | 496 wchar_t program_full_path[MAXPATHLEN+1]; in get_program_full_path() local 497 memset(program_full_path, 0, sizeof(program_full_path)); in get_program_full_path() 499 if (!GetModuleFileNameW(NULL, program_full_path, MAXPATHLEN)) { in get_program_full_path() 517 program_full_path); in get_program_full_path() 523 wcscpy_s(program_full_path, MAXPATHLEN+1, pyvenv_launcher); 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() 537 program_full_path); in get_program_full_path() [all …]
|
/third_party/python/Modules/ |
D | getpath.c | 958 assert(pathconfig->program_full_path == NULL); 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() 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() 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() [all …]
|
/third_party/python/Include/internal/ |
D | pycore_pathconfig.h | 13 wchar_t *program_full_path; member
|
/third_party/python/patches/ |
D | cpython_mingw_v3.10.2.patch | 2877 + wchar_t program_full_path[MAXPATHLEN+1]; 2878 + memset(program_full_path, 0, sizeof(program_full_path)); 2880 + if (GetModuleFileNameW(NULL, program_full_path, MAXPATHLEN)) { 2882 + Py_NormalizeSepsW(program_full_path); 2885 + return _PyMem_RawWcsdup(program_full_path); 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) { [all …]
|