summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,