|
@ -137,7 +137,10 @@ class Songbook(object): |
|
|
|
|
|
|
|
|
abs_datadir = [] |
|
|
abs_datadir = [] |
|
|
for path in self.config['datadir']: |
|
|
for path in self.config['datadir']: |
|
|
|
|
|
if os.path.exists(path) and os.path.isdir(path): |
|
|
abs_datadir.append(os.path.abspath(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__) |
|
|
|
|
|
|
|
|