From cc674f16697384ed93e538aa412b52f6b369f3ea Mon Sep 17 00:00:00 2001 From: Pierre Lalet Date: Fri, 15 Dec 2023 18:07:33 +0100 Subject: [PATCH] CLI: fix mfkey32v2 call for Windows --- software/script/chameleon_cli_unit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/software/script/chameleon_cli_unit.py b/software/script/chameleon_cli_unit.py index b3c7e20..c47487b 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -1029,7 +1029,7 @@ _KEY = re.compile("[a-fA-F0-9]{12}", flags=re.MULTILINE) def _run_mfkey32v2(items): output_str = subprocess.run( [ - "mfkey32v2.exe" if sys.platform == "win32" else "./mfkey32v2", + default_cwd / ("mfkey32v2.exe" if sys.platform == "win32" else "mfkey32v2"), items[0]["uid"], items[0]["nt"], items[0]["nr"], @@ -1038,7 +1038,6 @@ def _run_mfkey32v2(items): items[1]["nr"], items[1]["ar"], ], - cwd=default_cwd, capture_output=True, check=True, encoding="ascii",