summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-06-03 10:55:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-06-03 10:55:35 (GMT)
commit470b0c0e1f7247539210cb5c13f8cb0f28894714 (patch)
treed68dd3b0ba2b980089b425fe6b5591fb7c310807 /Lib/site.py
parent8a709b30493e7ca36e203d213d19f6fde8740470 (diff)
downloadcpython-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.
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py2
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,