Skip to content
Snippets Groups Projects
Commit 992ffbbe authored by Jean-Michel Picod's avatar Jean-Michel Picod
Browse files

Check for JLinkExe in path

parent 7d421d3a
No related branches found
No related tags found
No related merge requests found
...@@ -310,6 +310,11 @@ class OpenSKInstaller(object): ...@@ -310,6 +310,11 @@ class OpenSKInstaller(object):
def main(args): def main(args):
# Make sure the current working directory is the right one before running # Make sure the current working directory is the right one before running
os.chdir(os.path.realpath(os.path.dirname(__file__))) 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() OpenSKInstaller(args).run()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment