Browse Source

fix mac compliance, windows user: no hopes for you

Noah Vogt 4 years ago
parent
commit
705a58263c
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/final-converter

+ 8 - 1
src/final-converter

@@ -3,7 +3,14 @@
 # music21 settings
 from music21 import *
 from matplotlib import *
-environment.set('musicxmlPath', '/usr/bin/musescore')
+import sys
+if sys.platform == 'linux':
+    environment.set('musicxmlPath', '/usr/bin/musescore')
+elif sys.platform == 'darwin':
+    environment.set('musicxmlPath', 'Applications/MuseScore 3.5.app/')
+else:
+    print("Error: Please Use a Unix-like Operating System or change the source code")
+    exit()
 
 # import needed gizmo funtions
 from gizmo_funtions import return_part, stdin