From 8b6565e63eb0d4d847f448adac4fbf5a41d89de5 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Mon, 9 Sep 2019 16:05:21 +0000 Subject: [PATCH] bpo-37649: Fix exec_prefix check (GH-14897) (cherry picked from commit 09090d04ef8d2f4c94157b852d3d530a51e13d22) Co-authored-by: Orivej Desh --- Modules/getpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/getpath.c b/Modules/getpath.c index bfb33316d969b9..ba8d74b4a04272 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);