diff --git a/scripts/west/zap_common.py b/scripts/west/zap_common.py index 9fc3da2d828..cee80fa10e6 100644 --- a/scripts/west/zap_common.py +++ b/scripts/west/zap_common.py @@ -189,13 +189,13 @@ def get_current_version(self) -> Tuple[int, int, int]: """ Returns ZAP package current version as a tuple of integers. - Parses the output of `zap --version` to determine the current ZAP + Parses the output of `zap-cli --version` to determine the current ZAP package version. If the ZAP package has not been installed yet, the method returns None. """ try: output = subprocess.check_output( - [self.get_zap_path(), '--version']).decode('ascii').strip() + [self.get_zap_cli_path(), '--version']).decode('ascii').strip() except Exception: return None