Browse Source

Gestion des datadirs incorrects

pull/45/head
Louis 11 years ago
parent
commit
c467b11e15
  1. 5
      songbook_core/build.py

5
songbook_core/build.py

@ -137,7 +137,10 @@ class Songbook(object):
abs_datadir = [] abs_datadir = []
for path in self.config['datadir']: for path in self.config['datadir']:
abs_datadir.append(os.path.abspath(path)) if os.path.exists(path) and os.path.isdir(path):
abs_datadir.append(os.path.abspath(path))
else:
LOGGER.warning("Ignoring non-existent datadir '{}'.".format(path))
abs_datadir.append(__DATADIR__) abs_datadir.append(__DATADIR__)

Loading…
Cancel
Save