Commit 5413bc12 authored by Jack Jansen's avatar Jack Jansen

In an OSX framework build Python could fail if HOME wasn't set, fixed.

Fixes #747954.
parent a4fb2535
......@@ -177,7 +177,7 @@ for prefix in prefixes:
# locations. Currently only per-user, but /Library and
# /Network/Library could be added too
if 'Python.framework' in prefix:
home = os.environ['HOME']
home = os.environ.get('HOME')
if home:
sitedirs.append(
os.path.join(home,
......
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