bpo-37649: Fix exec_prefix check (GH-14897)
This commit is contained in:
parent
fb6807b043
commit
09090d04ef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue