Skip to content

Commit

Permalink
setup: Add yet another kaitai compiler name variant
Browse files Browse the repository at this point in the history
The kaitai compiler name is inconsistent across operating systems.
Added another name that can be encountered in the wild.
  • Loading branch information
e-rk committed Dec 10, 2023
1 parent 44474fd commit 9b79d68
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ def run(self):
"speedtools.parsers",
str(source),
]
try:
self.spawn(["ksc"] + args)
except ExecError:
self.spawn(["kaitai-struct-compiler.bat"] + args)
executables = ["ksc", "kaitai-struct-compiler", "kaitai-struct-compiler.bat"]
for executable in executables:
try:
self.spawn([executable] + args)
except ExecError:
pass

def get_output_mapping(self):
mapping = {}
Expand Down

0 comments on commit 9b79d68

Please sign in to comment.