From fe4dbeacaf67a491b9f809bc6720a7e7e7b6ccf7 Mon Sep 17 00:00:00 2001 From: melkisedeath Date: Mon, 25 Sep 2023 17:53:39 +0200 Subject: [PATCH] Workaround to check for screen only on linux machines to avoid missing screens on servers. --- partitura/io/musescore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/partitura/io/musescore.py b/partitura/io/musescore.py index 7b976993..1ab934db 100644 --- a/partitura/io/musescore.py +++ b/partitura/io/musescore.py @@ -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" )