diff --git a/patacrep/content/tex.py b/patacrep/content/tex.py index adf6950e..b00f3539 100755 --- a/patacrep/content/tex.py +++ b/patacrep/content/tex.py @@ -1,6 +1,5 @@ """Include LaTeX raw code in the songbook.""" -import itertools import logging import os @@ -43,9 +42,8 @@ def parse(keyword, argument, config): argument = [argument] filelist = ContentList() - basefolders = itertools.chain( - (path.fullpath for path in config['_songdir']), - files.iter_datadirs(config['_datadir'], 'latex'), + basefolders = [path.fullpath for path in config['_songdir']] + list( + files.iter_datadirs(config['_datadir'], 'latex') ) for filename in argument: checked_file = None diff --git a/test/test_content/tex.control b/test/test_content/tex.control index 0c187461..47d8fe2c 100644 --- a/test/test_content/tex.control +++ b/test/test_content/tex.control @@ -1,2 +1,3 @@ - test/test_content/datadir/songs/texfile.tex +- test/test_content/datadir/songs/texfile.tex - test/test_content/datadir/songs/texfile.tex \ No newline at end of file diff --git a/test/test_content/tex.source b/test/test_content/tex.source index 9cbed25b..959a2f46 100644 --- a/test/test_content/tex.source +++ b/test/test_content/tex.source @@ -1,4 +1,4 @@ - tex: - texfile.tex - - chordpro.csg + - texfile.tex - tex: texfile.tex \ No newline at end of file