]> granicus.if.org Git - python/commitdiff
In an OSX framework build Python could fail if HOME wasn't set, fixed.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 3 Jun 2003 10:55:35 +0000 (10:55 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 3 Jun 2003 10:55:35 +0000 (10:55 +0000)
Fixes #747954.

Lib/site.py

index 13522b1a86cdf17c44e2f89431d59405091aa746..cc6dd39455c287e0b2e2567670eb27b22fab290c 100644 (file)
@@ -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,