Browse Source

Forgotten _datadir

pull/184/head
Oliverpool 9 years ago
parent
commit
cb279ea6d9
  1. 4
      patacrep/content/include.py
  2. 2
      patacrep/data/templates/layout.tex
  3. 2
      patacrep/data/templates/songs.tex

4
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

2
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 *)
}

2
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 *)
}

Loading…
Cancel
Save