mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue