Skip to content

Commit 8670598

Browse files
committed
Abstract check_executable added
1 parent ab92a5a commit 8670598

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/toolchains/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,13 @@ def generic_check_executable(tool_key, executable_name, levels_up,
11301130
# User could have specified a path that exists but does not contain exe
11311131
return exists(subdir) or exists(subdir +'.exe')
11321132

1133+
@abstractmethod
1134+
def check_executable(self):
1135+
"""Returns True if the executable (armcc) location specified by the
1136+
user exists OR the executable can be found on the PATH.
1137+
Returns False otherwise."""
1138+
raise NotImplemented
1139+
11331140
@abstractmethod
11341141
def get_config_option(self, config_header):
11351142
"""Generate the compiler option that forces the inclusion of the configuration

0 commit comments

Comments
 (0)