summaryrefslogtreecommitdiff
path: root/Lib/site.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-06-03 10:55:35 +0000
committerJack Jansen <jack.jansen@cwi.nl>2003-06-03 10:55:35 +0000
commit5413bc122245d7ac6ad5eeac30b10525db9d4563 (patch)
treecb7e04708982ae1770a2ffbebf6f50dfd37309fe /Lib/site.py
parenta4fb2535b80237f1c96a51932854ca4aa8668cfc (diff)
downloadcpython-5413bc122245d7ac6ad5eeac30b10525db9d4563.tar.gz
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 13522b1a86..cc6dd39455 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,