mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
In an OSX framework build Python could fail if HOME wasn't set, fixed.
Fixes #747954.
This commit is contained in:
parent
8a709b3049
commit
470b0c0e1f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user