aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py5
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