Browse Source

Adds a warning message if _songbook_dir is not set

pull/53/head
Luthaf 11 years ago
parent
commit
75932768e2
  1. 5
      patacrep/content/include.py

5
patacrep/content/include.py

@ -26,6 +26,11 @@ def parse(keyword, config, argument, contentlist):
- contentlist: a list of file paths to be included.
"""
new_contentlist = []
if not os.path.isdir(config.get("_songbook_dir", "")):
LOGGER.warning("No songbook directory in configuration. 'include' "
"keyword may fail.")
for path in contentlist:
filepath = os.path.join(config["_songbook_dir"], path)
try:

Loading…
Cancel
Save