Skip to content

Commit 09090d0

Browse files
orivejzooba
authored andcommitted
bpo-37649: Fix exec_prefix check (GH-14897)
1 parent fb6807b commit 09090d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/getpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ calculate_init(PyCalculatePath *calculate,
11421142
return DECODE_LOCALE_ERR("PREFIX define", len);
11431143
}
11441144
calculate->exec_prefix = Py_DecodeLocale(EXEC_PREFIX, &len);
1145-
if (!calculate->prefix) {
1145+
if (!calculate->exec_prefix) {
11461146
return DECODE_LOCALE_ERR("EXEC_PREFIX define", len);
11471147
}
11481148
calculate->lib_python = Py_DecodeLocale("lib/python" VERSION, &len);

0 commit comments

Comments
 (0)