From: Jack Jansen Date: Tue, 3 Jun 2003 10:55:35 +0000 (+0000) Subject: In an OSX framework build Python could fail if HOME wasn't set, fixed. X-Git-Tag: v2.3c1~538 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=470b0c0e1f7247539210cb5c13f8cb0f28894714;p=python In an OSX framework build Python could fail if HOME wasn't set, fixed. Fixes #747954. --- 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,