diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2017-11-09 21:47:09 +1300 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2017-11-09 21:48:07 +1300 |
commit | 2722996a2aac7acbea301f34a41d62bcc11c2fdd (patch) | |
tree | 224c8f038abcf82d262723e1e4742306cbf7cafd /numpy/distutils | |
parent | 1368cbb696ae27b849eed67b4fd31c550a55dad5 (diff) | |
download | numpy-2722996a2aac7acbea301f34a41d62bcc11c2fdd.tar.gz |
MAINT: small robustness change for mingw support on Windows.
Closes gh-9839. Note that the second part of the patch there
was already fixed in commit 7a05f44ec.
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index 90b4def04..ce9cd6180 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -329,7 +329,8 @@ def find_dll(dll_name): def _find_dll_in_winsxs(dll_name): # Walk through the WinSxS directory to find the dll. - winsxs_path = os.path.join(os.environ['WINDIR'], 'winsxs') + winsxs_path = os.path.join(os.environ.get('WINDIR', r'C:\WINDOWS'), + 'winsxs') if not os.path.exists(winsxs_path): return None for root, dirs, files in os.walk(winsxs_path): |