bpo-45582: framework build: modPath must not be const (GH-29944)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
This commit is contained in:
Christian Heimes 2021-12-06 20:13:12 +02:00 committed by GitHub
parent af1db4eb55
commit f16f93e527
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -756,7 +756,7 @@ library_to_dict(PyObject *dict, const char *key)
}
#elif defined(WITH_NEXT_FRAMEWORK) && !defined(PY_BOOTSTRAP_PYTHON)
// _bootstrap_python does not use framework and crashes
static const char modPath[MAXPATHLEN + 1];
static char modPath[MAXPATHLEN + 1];
static int modPathInitialized = -1;
if (modPathInitialized < 0) {
NSModule pythonModule;