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 = []