Skip to content

Commit

Permalink
Make platform behavior more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo authored Aug 7, 2023
1 parent 1833c6e commit 3840656
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CuraEngineInfillGenerate/CuraEngineInfillGenerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,8 @@ def start(self):

def binaryPath(self) -> Path:
ext = ".exe" if platform.system() == "Windows" else ""
return Path(__file__).parent.joinpath({"AMD64": "x86_64", "x86_64": "x86_64"}.get(platform.machine()), platform.system(), f"curaengine_plugin_infill_generate{ext}").resolve()

platform = platform.machine()
if platform == "AMD64":
platform = "x86_64"
return Path(__file__).parent.joinpath(platform, platform.system(), f"curaengine_plugin_infill_generate{ext}").resolve()

0 comments on commit 3840656

Please sign in to comment.