Check if ARM build exists before using

This commit is contained in:
SamJakob 2023-11-08 15:17:34 +00:00
parent 5d27a6cb4b
commit 8073fed85e
No known key found for this signature in database
GPG Key ID: 607AC91837DBB115

View File

@ -175,7 +175,7 @@ def getScytherBackend():
# Check if there is an ARM version available at scyther-mac-arm
# Otherwise, just fallback to the default scyther-mac which is the
# Intel version for backwards-compatibility reasons.
if platform.processor().startswith("arm"):
if platform.processor().startswith("arm") and os.path.exists(getBinDir(),"scyther-mac-arm"):
scythername = "scyther-mac-arm"
else:
scythername = "scyther-mac"