Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
_PyPathConfig structure has _is_python_build
  • Loading branch information
neonene authored May 6, 2022
commit 4aa7ee5de0db8b02438264bd80a82722dadc4192
3 changes: 3 additions & 0 deletions Python/pathconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ typedef struct _PyPathConfig {
wchar_t *program_name;
/* Set by Py_SetPythonHome() or PYTHONHOME environment variable */
wchar_t *home;
int _is_python_build;
} _PyPathConfig;

# define _PyPathConfig_INIT \
Expand Down Expand Up @@ -105,6 +106,7 @@ _PyPathConfig_ReadGlobal(PyConfig *config)
COPY(program_name);
COPY(home);
COPY2(executable, program_full_path);
config->_is_python_build = _Py_path_config._is_python_build;
// module_search_path must be initialised - not read
#undef COPY
#undef COPY2
Expand Down Expand Up @@ -143,6 +145,7 @@ _PyPathConfig_UpdateGlobal(const PyConfig *config)
COPY(program_name);
COPY(home);
COPY2(program_full_path, executable);
_Py_path_config._is_python_build = config->_is_python_build;
#undef COPY
#undef COPY2

Expand Down