diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-14 09:56:22 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-14 09:56:22 -0500 |
commit | fccf9357c484e4b475348dfbef321e544e2a3cab (patch) | |
tree | 4b3b827610c02791f3c72bf760f73f82fe6a04c5 /setuptools/package_index.py | |
parent | e405a2b4861216e3c6b50c79f7b26289656fdb41 (diff) | |
download | external_python_setuptools-fccf9357c484e4b475348dfbef321e544e2a3cab.tar.gz external_python_setuptools-fccf9357c484e4b475348dfbef321e544e2a3cab.tar.bz2 external_python_setuptools-fccf9357c484e4b475348dfbef321e544e2a3cab.zip |
Use 'expanduser' for better compatibilty.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 3154eccb..5f328a03 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -943,10 +943,7 @@ class PyPirc(object): """ self.dict_ = {} - if 'HOME' not in os.environ: - return - - rc = os.path.join(os.environ['HOME'], '.pypirc') + rc = os.path.join(os.path.expanduser('~'), '.pypirc') if not os.path.exists(rc): return |