diff options
author | Guido van Rossum <guido@python.org> | 1998-03-26 21:13:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-26 21:13:24 (GMT) |
commit | 45e2fbc2e70ef28b1f0327207f33dab3a4e825c5 (patch) | |
tree | 24cafdb6ffb07170188292a02440935291327cde /Lib/user.py | |
parent | 9ea7024754f0e42d7fc70fd1c8f6f6cfbf7e1cf0 (diff) | |
download | cpython-45e2fbc2e70ef28b1f0327207f33dab3a4e825c5.zip cpython-45e2fbc2e70ef28b1f0327207f33dab3a4e825c5.tar.gz cpython-45e2fbc2e70ef28b1f0327207f33dab3a4e825c5.tar.bz2 |
Mass check-in after untabifying all files that need it.
Diffstat (limited to 'Lib/user.py')
-rw-r--r-- | Lib/user.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/user.py b/Lib/user.py index 125a7a2..1374c11 100644 --- a/Lib/user.py +++ b/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: |