Kaydet (Commit) a7ce6244 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Backport 1.7:

SF # 555779, import user doesn't work with CGIs
üst 100fcd0a
......@@ -26,6 +26,8 @@ import os
home = os.curdir # Default
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'):
if os.environ.has_key('HOMEDRIVE'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment