Skip to content

Commit

Permalink
Workaround to check for screen only on linux machines to avoid missin…
Browse files Browse the repository at this point in the history
…g screens on servers.
  • Loading branch information
manoskary committed Sep 25, 2023
1 parent f3ce4ef commit fe4dbea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion partitura/io/musescore.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def find_musescore():
)
else:
raise MuseScoreNotFoundException()
if "DISPLAY" not in os.environ:
# check if a screen is available (only on Linux)
if "DISPLAY" not in os.environ and platform.system() == "Linux":
raise MuseScoreNotFoundException(
"Musescore Executable was found, but a screen is missing. Musescore needs a screen to load scores"
)
Expand Down

0 comments on commit fe4dbea

Please sign in to comment.