From cb279ea6d9be6f67d5e0cce242c2170c3dad231d Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 17 Dec 2015 16:41:44 +0100 Subject: [PATCH] Forgotten _datadir --- patacrep/content/include.py | 4 ++-- patacrep/data/templates/layout.tex | 2 +- patacrep/data/templates/songs.tex | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/patacrep/content/include.py b/patacrep/content/include.py index 2948eb47..bfd5db5c 100644 --- a/patacrep/content/include.py +++ b/patacrep/content/include.py @@ -54,9 +54,9 @@ def parse(keyword, config, argument, contentlist): LOGGER.error("Error while loading file '{}'.".format(filepath)) sys.exit(1) - config["datadir"].append(os.path.abspath(os.path.dirname(filepath))) + config["_datadir"].append(os.path.abspath(os.path.dirname(filepath))) new_contentlist += process_content(new_content, config) - config["datadir"].pop() + config["_datadir"].pop() return new_contentlist diff --git a/patacrep/data/templates/layout.tex b/patacrep/data/templates/layout.tex index 63227530..ea048417 100644 --- a/patacrep/data/templates/layout.tex +++ b/patacrep/data/templates/layout.tex @@ -27,7 +27,7 @@ \makeatletter \def\input@path{ % - (* for dir in datadir|iter_datadirs *) + (* for dir in _datadir|iter_datadirs *) {(( dir | path2posix ))/latex/} % (* endfor *) } diff --git a/patacrep/data/templates/songs.tex b/patacrep/data/templates/songs.tex index 07ed0f33..bd7a90ee 100644 --- a/patacrep/data/templates/songs.tex +++ b/patacrep/data/templates/songs.tex @@ -88,7 +88,7 @@ \usepackage{graphicx} \graphicspath{ % - (* for dir in datadir|iter_datadirs*) + (* for dir in _datadir|iter_datadirs*) {(( dir | path2posix ))/} % (* endfor *) }