mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
SF # 555779, import user doesn't work with CGIs
This commit is contained in:
parent
bd9adab138
commit
609ba81cdb
2 changed files with 6 additions and 2 deletions
|
@ -26,6 +26,8 @@ import os
|
|||
home = os.curdir # Default
|
||||
if 'HOME' in os.environ:
|
||||
home = os.environ['HOME']
|
||||
elif os.name == 'posix':
|
||||
home = os.path.expanduser("~/")
|
||||
elif os.name == 'nt': # Contributed by Jeff Bauer
|
||||
if 'HOMEPATH' in os.environ:
|
||||
if 'HOMEDRIVE' in os.environ:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue