From 9a98f1d08d95641aa422f0667fdd5e8721897437 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 13 Jun 2016 07:59:32 +0200 Subject: [PATCH] bugfix: use a list instead of an iterator --- patacrep/content/tex.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/patacrep/content/tex.py b/patacrep/content/tex.py index adf6950e..8f2ebcb9 100755 --- a/patacrep/content/tex.py +++ b/patacrep/content/tex.py @@ -43,9 +43,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