mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Mass check-in after untabifying all files that need it.
This commit is contained in:
parent
9ea7024754
commit
45e2fbc2e7
50 changed files with 5249 additions and 5249 deletions
12
Lib/user.py
12
Lib/user.py
|
@ -23,15 +23,15 @@ wishes to do different things depending on the Python version.
|
|||
|
||||
import os
|
||||
|
||||
home = os.curdir # Default
|
||||
home = os.curdir # Default
|
||||
if os.environ.has_key('HOME'):
|
||||
home = os.environ['HOME']
|
||||
elif os.name == 'nt': # Contributed by Jeff Bauer
|
||||
elif os.name == 'nt': # Contributed by Jeff Bauer
|
||||
if os.environ.has_key('HOMEPATH'):
|
||||
if os.environ.has_key('HOMEDRIVE'):
|
||||
home = os.environ['HOMEDRIVE'] + os.environ['HOMEPATH']
|
||||
else:
|
||||
home = os.environ['HOMEPATH']
|
||||
if os.environ.has_key('HOMEDRIVE'):
|
||||
home = os.environ['HOMEDRIVE'] + os.environ['HOMEPATH']
|
||||
else:
|
||||
home = os.environ['HOMEPATH']
|
||||
|
||||
pythonrc = os.path.join(home, ".pythonrc.py")
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue