• Home
  • Raw
  • Download

Lines Matching refs:_Py_path_config

19 _PyPathConfig _Py_path_config = _PyPathConfig_INIT;  variable
106 pathconfig_clear(&_Py_path_config); in _PyPathConfig_ClearGlobal()
211 (_Py_path_config.KEY \ in _PyPathConfig_AsDict()
212 ? PyUnicode_FromWideChar(_Py_path_config.KEY, -1) \ in _PyPathConfig_AsDict()
215 SET_ITEM(#KEY, PyLong_FromLong(_Py_path_config.KEY)) in _PyPathConfig_AsDict()
267 return pathconfig_set_from_config(&_Py_path_config, config); in _PyConfig_WritePathConfig()
343 status = pathconfig_copy(pathconfig, &_Py_path_config); in pathconfig_init()
480 pathconfig_clear(&_Py_path_config); in Py_SetPath()
487 PyMem_RawFree(_Py_path_config.prefix); in Py_SetPath()
488 PyMem_RawFree(_Py_path_config.exec_prefix); in Py_SetPath()
489 PyMem_RawFree(_Py_path_config.module_search_path); in Py_SetPath()
491 _Py_path_config.prefix = _PyMem_RawWcsdup(L""); in Py_SetPath()
492 _Py_path_config.exec_prefix = _PyMem_RawWcsdup(L""); in Py_SetPath()
493 _Py_path_config.module_search_path = _PyMem_RawWcsdup(path); in Py_SetPath()
497 if (_Py_path_config.prefix == NULL in Py_SetPath()
498 || _Py_path_config.exec_prefix == NULL in Py_SetPath()
499 || _Py_path_config.module_search_path == NULL) in Py_SetPath()
516 PyMem_RawFree(_Py_path_config.home); in Py_SetPythonHome()
517 _Py_path_config.home = _PyMem_RawWcsdup(home); in Py_SetPythonHome()
521 if (_Py_path_config.home == NULL) { in Py_SetPythonHome()
537 PyMem_RawFree(_Py_path_config.program_name); in Py_SetProgramName()
538 _Py_path_config.program_name = _PyMem_RawWcsdup(program_name); in Py_SetProgramName()
542 if (_Py_path_config.program_name == NULL) { in Py_SetProgramName()
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()
571 return _Py_path_config.module_search_path; in Py_GetPath()
578 return _Py_path_config.prefix; in Py_GetPrefix()
585 return _Py_path_config.exec_prefix; in Py_GetExecPrefix()
592 return _Py_path_config.program_full_path; in Py_GetProgramFullPath()
599 return _Py_path_config.home; in Py_GetPythonHome()
606 return _Py_path_config.program_name; in Py_GetProgramName()