Skip to content

Commit eb1626b

Browse files
orivejwebsurfer5
authored andcommitted
bpo-37649: Fix exec_prefix check (pythonGH-14897)
1 parent 8f9c5fb commit eb1626b

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)