summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-09-09 10:59:18 -0700
committerGitHub <noreply@github.com>2019-09-09 10:59:18 -0700
commite83296314583ba9c7952d6539c63aae803a197ae (patch)
treedc1a42491c0604c5b12ccdbb7c783c99012d4752 /Modules
parentFix punctuation in `os.execvpe` docstring. (GH-15051) (diff)
downloadcpython-e83296314583ba9c7952d6539c63aae803a197ae.tar.gz
cpython-e83296314583ba9c7952d6539c63aae803a197ae.tar.bz2
cpython-e83296314583ba9c7952d6539c63aae803a197ae.zip
bpo-37649: Fix exec_prefix check (GH-14897)
(cherry picked from commit 09090d04ef8d2f4c94157b852d3d530a51e13d22) Co-authored-by: Orivej Desh <orivej@gmx.fr>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/getpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 5f807381880..dc0574851c3 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);