From f59b92b3eed9499f9b293ef034a04388742d57c7 Mon Sep 17 00:00:00 2001 From: Rihards Skuja Date: Fri, 10 Jan 2020 11:48:25 +0200 Subject: [PATCH] runners: openocd: don't throw when no config is provided In some cases the config is already provided for us e.g. when setting OPENOCD_NRF5_SUBFAMILY. Also it looks like config was always supposed to be optional (there are checks for it on do_run()). Signed-off-by: Rihards Skuja --- scripts/west_commands/runners/openocd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/west_commands/runners/openocd.py b/scripts/west_commands/runners/openocd.py index c731202ae87..23e01e30032 100644 --- a/scripts/west_commands/runners/openocd.py +++ b/scripts/west_commands/runners/openocd.py @@ -30,7 +30,7 @@ class OpenOcdBinaryRunner(ZephyrBinaryRunner): config = default self.openocd_config = config - if path.exists(self.openocd_config): + if self.openocd_config is not None and path.exists(self.openocd_config): search_args = ['-s', path.dirname(self.openocd_config)] else: search_args = []