[Python-checkins] python/dist/src/Lib site.py,1.50,1.51

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Tue, 03 Jun 2003 03:55:38 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv27737

Modified Files:
	site.py 
Log Message:
In an OSX framework build Python could fail if HOME wasn't set, fixed.
Fixes #747954.


Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** site.py	10 May 2003 07:36:54 -0000	1.50
--- site.py	3 Jun 2003 10:55:35 -0000	1.51
***************
*** 178,182 ****
              # /Network/Library could be added too
              if 'Python.framework' in prefix:
!                 home = os.environ['HOME']
                  if home:
                      sitedirs.append(
--- 178,182 ----
              # /Network/Library could be added too
              if 'Python.framework' in prefix:
!                 home = os.environ.get('HOME')
                  if home:
                      sitedirs.append(