From 9174b0273e91e4478ee63e6b5754148e0317018c 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 b3c7e203..c47487b7 100644 --- a/software/script/chameleon_cli_unit.py +++ b/software/script/chameleon_cli_unit.py @@ -1029,7 +1029,7 @@ def res_value(self, src_blk, src_type, src_key, dst_blk, dst_type, dst_key): 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",