summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2019-09-09 16:05:21 (GMT)
committerSteve Dower <steve.dower@python.org>2019-09-09 16:05:21 (GMT)
commit09090d04ef8d2f4c94157b852d3d530a51e13d22 (patch)
tree8f0473190baaefe968a462c4546d7c0057e17cf6
parentfb6807b043ab586428225920373e551b0432bc40 (diff)
downloadcpython-09090d04ef8d2f4c94157b852d3d530a51e13d22.zip
cpython-09090d04ef8d2f4c94157b852d3d530a51e13d22.tar.gz
cpython-09090d04ef8d2f4c94157b852d3d530a51e13d22.tar.bz2
bpo-37649: Fix exec_prefix check (GH-14897)
-rw-r--r--Modules/getpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 2372172..36f9860 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -1142,7 +1142,7 @@ calculate_init(PyCalculatePath *calculate,
return DECODE_LOCALE_ERR("PREFIX define", len);
}
calculate->exec_prefix = Py_DecodeLocale(EXEC_PREFIX, &len);
- if (!calculate->prefix) {
+ if (!calculate->exec_prefix) {
return DECODE_LOCALE_ERR("EXEC_PREFIX define", len);
}
calculate->lib_python = Py_DecodeLocale("lib/python" VERSION, &len);