Commit 09090d04 authored by Orivej Desh's avatar Orivej Desh Committed by Steve Dower

bpo-37649: Fix exec_prefix check (GH-14897)

parent fb6807b0
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment