summaryrefslogtreecommitdiff
path: root/test/find_exe.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/find_exe.py')
-rw-r--r--test/find_exe.py2
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))