From ee8ed6d7b08e41c2fa7a6f9f868bb060b0972f7a Mon Sep 17 00:00:00 2001 From: Sarah Marsh Date: Tue, 13 Sep 2016 16:26:58 -0500 Subject: [PATCH] Abstract check_executable added --- tools/toolchains/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index 583e606f90..0e1c7c3d46 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -1133,6 +1133,13 @@ class mbedToolchain: # User could have specified a path that exists but does not contain exe return exists(subdir) or exists(subdir +'.exe') + @abstractmethod + def check_executable(self): + """Returns True if the executable (armcc) location specified by the + user exists OR the executable can be found on the PATH. + Returns False otherwise.""" + raise NotImplemented + @abstractmethod def get_config_option(self, config_header): """Generate the compiler option that forces the inclusion of the configuration