diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-06-03 10:55:35 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-06-03 10:55:35 (GMT) |
commit | 470b0c0e1f7247539210cb5c13f8cb0f28894714 (patch) | |
tree | d68dd3b0ba2b980089b425fe6b5591fb7c310807 | |
parent | 8a709b30493e7ca36e203d213d19f6fde8740470 (diff) | |
download | cpython-470b0c0e1f7247539210cb5c13f8cb0f28894714.zip cpython-470b0c0e1f7247539210cb5c13f8cb0f28894714.tar.gz cpython-470b0c0e1f7247539210cb5c13f8cb0f28894714.tar.bz2 |
In an OSX framework build Python could fail if HOME wasn't set, fixed.
Fixes #747954.
-rw-r--r-- | Lib/site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py index 13522b1..cc6dd39 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -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, |