Browse Source

Dans un fichier .sg, datadir peut être indifféramment une chaîne ou une liste

pull/45/head
Louis 11 years ago
parent
commit
f13563e46c
  1. 2
      songbook

2
songbook

@ -110,6 +110,8 @@ def main():
datadirs = [] datadirs = []
try: try:
if isinstance(songbook['datadir'], basestring):
songbook['datadir'] = [songbook['datadir']]
for path in songbook['datadir']: for path in songbook['datadir']:
if not os.path.isabs(path): if not os.path.isabs(path):
datadirs.append(os.path.join(os.path.dirname(songbook_path), datadirs.append(os.path.join(os.path.dirname(songbook_path),

Loading…
Cancel
Save