[Python-checkins] python/dist/src/Lib user.py,1.5,1.5.28.1

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Sat, 05 Oct 2002 20:13:32 -0700


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

Modified Files:
      Tag: release22-maint
	user.py 
Log Message:
Backport 1.7:

SF # 555779, import user doesn't work with CGIs



Index: user.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/user.py,v
retrieving revision 1.5
retrieving revision 1.5.28.1
diff -C2 -d -r1.5 -r1.5.28.1
*** user.py	30 Mar 2000 15:00:33 -0000	1.5
--- user.py	6 Oct 2002 03:13:29 -0000	1.5.28.1
***************
*** 27,30 ****
--- 27,32 ----
  if os.environ.has_key('HOME'):
      home = os.environ['HOME']
+ elif os.name == 'posix':
+     home = os.path.expanduser("~/")
  elif os.name == 'nt':                   # Contributed by Jeff Bauer
      if os.environ.has_key('HOMEPATH'):