[issue1741] .pypirc not found on windows

2008-01-06 Thread Gerdus van Zyl

Changes by Gerdus van Zyl:


--
components: Distutils
nosy: gerdus
severity: normal
status: open
title: .pypirc not found on windows
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1741>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1741] .pypirc not found on windows

2008-01-06 Thread Gerdus van Zyl

New submission from Gerdus van Zyl:

register.py and upload.py both can't find the .pypirc on my system since
there is no HOME environment variable.
currently:
if os.environ.has_key('HOME'):
rc = os.path.join(os.environ['HOME'], '.pypirc')
if os.path.exists(rc):

works for me if changed to:
rc = os.path.expanduser('~/.pypirc') 
if os.path.exists(rc):

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1741>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com