diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-11-08 17:34:36 -0800 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-11-08 17:34:36 -0800 |
commit | 3b6f93cb558e83bf7e1a967b51d9dc3cddc6f885 (patch) | |
tree | c2775236ef60036e128978b468a29ef0142d6d03 /numpy | |
parent | 4050ac73af79ae8cc513648ff02e9a22041501c4 (diff) | |
parent | e1569a36b4096a9bb131961dac8db36773076137 (diff) | |
download | numpy-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.py | 2 |
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: |