diff --git a/deploy.py b/deploy.py index d1488d95df927240c1a244c42363ef3e812b83f1..5109587712112fa22ec7aea53ae9c6ad0b52e7a2 100755 --- a/deploy.py +++ b/deploy.py @@ -310,6 +310,11 @@ class OpenSKInstaller(object): def main(args): # Make sure the current working directory is the right one before running os.chdir(os.path.realpath(os.path.dirname(__file__))) + # Check for pre-requisite executable files. + if not shutil.which("JLinkExe"): + fatal(("Couldn't find JLinkExe binary. Make sure Segger JLink tools " + "are installed and correctly set up.")) + OpenSKInstaller(args).run()