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

Fixes #747954.
This commit is contained in:
Jack Jansen 2003-06-03 10:55:35 +00:00
parent 8a709b3049
commit 470b0c0e1f

View File

@ -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,