commit | 470b0c0e1f7247539210cb5c13f8cb0f28894714 | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Tue Jun 03 10:55:35 2003 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Tue Jun 03 10:55:35 2003 +0000 |
tree | d68dd3b0ba2b980089b425fe6b5591fb7c310807 | |
parent | 8a709b30493e7ca36e203d213d19f6fde8740470 [diff] [blame] |
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 13522b1..cc6dd39 100644 --- a/Lib/site.py +++ b/Lib/site.py
@@ -177,7 +177,7 @@ # 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,