diff options
Diffstat (limited to 'test/find_exe.py')
-rw-r--r-- | test/find_exe.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/find_exe.py b/test/find_exe.py index 18481266..3d79ade4 100644 --- a/test/find_exe.py +++ b/test/find_exe.py @@ -49,6 +49,8 @@ if IS_WINDOWS: def FindExeWithFallback(name, default_exe_list, override_exe=None): result = override_exe if result is not None: + if IS_WINDOWS and os.path.splitext(result)[1] != '.exe': + result += '.exe' if os.path.exists(result): return os.path.abspath(result) raise Error('%s executable not found.\nsearch path: %s\n' % (name, result)) |