summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-11-08 17:34:36 -0800
committerCharles Harris <charlesr.harris@gmail.com>2013-11-08 17:34:36 -0800
commit3b6f93cb558e83bf7e1a967b51d9dc3cddc6f885 (patch)
treec2775236ef60036e128978b468a29ef0142d6d03 /numpy
parent4050ac73af79ae8cc513648ff02e9a22041501c4 (diff)
parente1569a36b4096a9bb131961dac8db36773076137 (diff)
downloadnumpy-3b6f93cb558e83bf7e1a967b51d9dc3cddc6f885.tar.gz
Merge pull request #4022 from bbudescu/win-home-envvar
cross-platform code to find home folder when looking .numpy-site.cfg
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/system_info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index 800415e46..5ed12db6e 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -271,7 +271,7 @@ def get_standard_file(fname):
# Home directory
# And look for the user config file
try:
- f = os.environ['HOME']
+ f = os.path.expanduser('~')
except KeyError:
pass
else: