Skip to content

Commit e832963

Browse files
bpo-37649: Fix exec_prefix check (GH-14897)
(cherry picked from commit 09090d0) Co-authored-by: Orivej Desh <[email protected]>
1 parent 421ef39 commit e832963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/getpath.c

+1-1
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)