bored5644533's picture
Update ms.py
76f86da verified
Raw
History Blame Contribute Delete
276 Bytes
import os
import shutil
# Prefer system-installed MuseScore
if shutil.which("musescore3"):
MSCORE = "musescore3"
elif shutil.which("mscore"):
MSCORE = "mscore"
else:
raise RuntimeError("MuseScore executable not found")
os.environ["QT_QPA_PLATFORM"] = "offscreen"