Home
last modified time | relevance | path

Searched refs:program_full_path (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Modules/
Dgetpath.c565 wchar_t program_full_path[MAXPATHLEN+1]; in calculate_program_full_path() local
566 memset(program_full_path, 0, sizeof(program_full_path)); in calculate_program_full_path()
583 wcsncpy(program_full_path, core_config->program_name, MAXPATHLEN); in calculate_program_full_path()
604 wcsncpy(program_full_path, path, MAXPATHLEN); in calculate_program_full_path()
618 wcsncpy(program_full_path, path, len); in calculate_program_full_path()
619 program_full_path[len] = '\0'; in calculate_program_full_path()
622 wcsncpy(program_full_path, path, MAXPATHLEN); in calculate_program_full_path()
625 joinpath(program_full_path, core_config->program_name); in calculate_program_full_path()
626 if (isxfile(program_full_path)) { in calculate_program_full_path()
631 program_full_path[0] = L'\0'; in calculate_program_full_path()
[all …]
Dmain.c1215 const wchar_t *program_full_path = _Py_path_config.program_full_path; in config_init_executable() local
1216 if (program_full_path != NULL) { in config_init_executable()
1217 config->executable = _PyMem_RawWcsdup(program_full_path); in config_init_executable()
/external/python/cpython3/Python/
Dpathconfig.c32 CLEAR(config->program_full_path); in _PyPathConfig_Clear()
144 new_config.program_full_path = _PyMem_RawWcsdup(Py_GetProgramName()); in Py_SetPath()
209 _Py_SetProgramFullPath(const wchar_t *program_full_path) in _Py_SetProgramFullPath() argument
211 if (program_full_path == NULL || program_full_path[0] == L'\0') { in _Py_SetProgramFullPath()
218 PyMem_RawFree(_Py_path_config.program_full_path); in _Py_SetProgramFullPath()
219 _Py_path_config.program_full_path = _PyMem_RawWcsdup(program_full_path); in _Py_SetProgramFullPath()
223 if (_Py_path_config.program_full_path == NULL) { in _Py_SetProgramFullPath()
261 return _Py_path_config.program_full_path; in Py_GetProgramFullPath()
/external/python/cpython3/PC/
Dgetpathp.c540 wchar_t program_full_path[MAXPATHLEN+1]; in get_program_full_path() local
541 memset(program_full_path, 0, sizeof(program_full_path)); in get_program_full_path()
547 wcscpy_s(program_full_path, MAXPATHLEN+1, pyvenv_launcher); in get_program_full_path()
548 } else if (!GetModuleFileNameW(NULL, program_full_path, MAXPATHLEN)) { in get_program_full_path()
553 config->program_full_path = PyMem_RawMalloc( in get_program_full_path()
556 return canonicalize(config->program_full_path, in get_program_full_path()
557 program_full_path); in get_program_full_path()
677 if (config->program_full_path[0]) { in get_pth_filename()
678 if (!change_ext(spbuffer, config->program_full_path, L"._pth") && in get_pth_filename()
973 wcscpy_s(calculate->argv0_path, MAXPATHLEN+1, config->program_full_path); in calculate_path_impl()
[all …]
/external/python/cpython3/Include/internal/
Dpystate.h42 wchar_t *program_full_path; member