[issue1741] .pypirc not found on windows

Gerdus van Zyl report at bugs.python.org
Sun Jan 6 11:45:21 CET 2008


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 <report at bugs.python.org>
<http://bugs.python.org/issue1741>
__________________________________


More information about the Python-bugs-list mailing list