Browse Source

Songbook file extension can be omitted.

The following commands are equivalent:

$ songbook foo.sb
$ songbook foo
pull/126/head
Louis 9 years ago
parent
commit
8029ff9bed
  1. 2
      patacrep/songbook.py

2
patacrep/songbook.py

@ -105,6 +105,8 @@ def main():
options = argument_parser(sys.argv[1:]) options = argument_parser(sys.argv[1:])
songbook_path = options.book[0] songbook_path = options.book[0]
if os.path.exists(songbook_path + ".sb") and not os.path.exists(songbook_path):
songbook_path += ".sb"
basename = os.path.basename(songbook_path)[:-3] basename = os.path.basename(songbook_path)[:-3]

Loading…
Cancel
Save