Skip to content

Commit fe1f2b6

Browse files
authored
Merge pull request #2563 from sarahmarshy/path_error_rev
Check if executble exists
2 parents 9ec0ec0 + bd0acdc commit fe1f2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def check_toolchain_path(function):
197197
function -- the function to decorate
198198
"""
199199
def perform_check(self, *args, **kwargs):
200-
if not exists(self.toolchain_path):
200+
if not exists(self.toolchain_path) and not exists(self.toolchain_path+'.exe'):
201201
error_string = 'Could not find executable for %s.\n Currently ' \
202202
'set search path: %s'% (self.name, self.toolchain_path)
203203
raise Exception(error_string)

0 commit comments

Comments
 (0)