Skip to content

Commit

Permalink
It's been too long since I've used Python.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePython10110 authored Oct 22, 2023
1 parent 7386e0c commit e150ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batch_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ def list_files(startpath):
try:
print("Attempting to use midiflip on path...")
subprocess.check_call(["midiflip", "-i", (output if output else ".") + "/MIDI/**/*.midi", "-o", (output if output else ".") + "/FlippedMIDI", "-f"], shell = True)
except CalledProcessError:
except subprocess.CalledProcessError:
try:
print("Failed.\nAttempting to use .\\node_module\\.bin\\midiflip")
subprocess.check_call([".\\node_modules\\.bin\\midiflip", "-i", (output if output else ".") + "/MIDI/**/*.midi", "-o", (output if output else ".") + "/FlippedMIDI", "-f"], shell = True)
except CalledProcessError:
except subprocess.CalledProcessError:
print("Error (is midiflip installed?)")

if not args.auto:
Expand Down

0 comments on commit e150ff2

Please sign in to comment.