From 470b0c0e1f7247539210cb5c13f8cb0f28894714 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 3 Jun 2003 10:55:35 +0000 Subject: [PATCH] In an OSX framework build Python could fail if HOME wasn't set, fixed. Fixes #747954. --- Lib/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/site.py b/Lib/site.py index 13522b1a86c..cc6dd39455c 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,