[Python-checkins] bpo-37649: Fix exec_prefix check (GH-14897)

Miss Islington (bot) webhook-mailer at python.org
Mon Sep 9 14:12:04 EDT 2019


https://github.com/python/cpython/commit/328cfde754c6b30c1249c5b9c12ab6b8faab551e
commit: 328cfde754c6b30c1249c5b9c12ab6b8faab551e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-09-09T11:12:00-07:00
summary:

bpo-37649: Fix exec_prefix check (GH-14897)

(cherry picked from commit 09090d04ef8d2f4c94157b852d3d530a51e13d22)

Co-authored-by: Orivej Desh <orivej at gmx.fr>

files:
M Modules/getpath.c

diff --git a/Modules/getpath.c b/Modules/getpath.c
index bfb33316d969..ba8d74b4a042 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -909,7 +909,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