Skip to content

Commit

Permalink
CLI: fix mfkey32v2 call for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
p-l- committed Dec 18, 2023
1 parent 02165a0 commit 9174b02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions software/script/chameleon_cli_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -1038,7 +1038,6 @@ def _run_mfkey32v2(items):
items[1]["nr"],
items[1]["ar"],
],
cwd=default_cwd,
capture_output=True,
check=True,
encoding="ascii",
Expand Down

0 comments on commit 9174b02

Please sign in to comment.