mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
whitespace
This commit is contained in:
parent
8477ed6048
commit
5d4e27ecee
1 changed files with 5 additions and 5 deletions
|
@ -227,11 +227,11 @@ class _WindowsFlavour(_Flavour):
|
|||
elif 'USERPROFILE' in os.environ:
|
||||
userhome = os.environ['USERPROFILE']
|
||||
elif 'HOMEPATH' in os.environ:
|
||||
try:
|
||||
drv = os.environ['HOMEDRIVE']
|
||||
except KeyError:
|
||||
drv = ''
|
||||
userhome = drv + os.environ['HOMEPATH']
|
||||
try:
|
||||
drv = os.environ['HOMEDRIVE']
|
||||
except KeyError:
|
||||
drv = ''
|
||||
userhome = drv + os.environ['HOMEPATH']
|
||||
else:
|
||||
raise RuntimeError("Can't determine home directory")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue