[Python-checkins] bpo-45582: framework build: modPath must not be const (GH-29944)
tiran
webhook-mailer at python.org
Mon Dec 6 13:13:22 EST 2021
https://github.com/python/cpython/commit/f16f93e5279f957ca25dd8b91233a44833167a8a
commit: f16f93e5279f957ca25dd8b91233a44833167a8a
branch: main
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2021-12-06T19:13:12+01:00
summary:
bpo-45582: framework build: modPath must not be const (GH-29944)
Co-authored-by: Ronald Oussoren <ronaldoussoren at mac.com>
files:
M Modules/getpath.c
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 2e46226a08531..9ce7260f77826 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -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;
More information about the Python-checkins
mailing list