[Python-checkins] bpo-37649: Fix exec_prefix check (GH-14897)
Steve Dower
webhook-mailer at python.org
Mon Sep 9 12:05:25 EDT 2019
https://github.com/python/cpython/commit/09090d04ef8d2f4c94157b852d3d530a51e13d22
commit: 09090d04ef8d2f4c94157b852d3d530a51e13d22
branch: master
author: Orivej Desh <orivej at gmx.fr>
committer: Steve Dower <steve.dower at python.org>
date: 2019年09月09日T09:05:21-07:00
summary:
bpo-37649: Fix exec_prefix check (GH-14897)
files:
M Modules/getpath.c
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 2372172a7b9f..36f9860ea131 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);
More information about the Python-checkins
mailing list