Browse Source

pylint

pull/58/head
Louis 11 years ago
parent
commit
79666c4d3c
  1. 8
      patacrep/build.py
  2. 2
      patacrep/content/tex.py

8
patacrep/build.py

@ -149,7 +149,9 @@ class SongbookBuilder(object):
if not self.interactive: if not self.interactive:
self._pdflatex_options.append("-halt-on-error") self._pdflatex_options.append("-halt-on-error")
for datadir in self.songbook.config["datadir"]: for datadir in self.songbook.config["datadir"]:
self._pdflatex_options.append('--include-directory="{}"'.format(datadir)) self._pdflatex_options.append(
'--include-directory="{}"'.format(datadir)
)
def build_steps(self, steps=None): def build_steps(self, steps=None):
"""Perform steps on the songbook by calling relevant self.build_*() """Perform steps on the songbook by calling relevant self.build_*()
@ -202,8 +204,8 @@ class SongbookBuilder(object):
stdout=PIPE, stdout=PIPE,
stderr=PIPE, stderr=PIPE,
env=os.environ) env=os.environ)
except Exception as e: except Exception as error:
LOGGER.debug(e) LOGGER.debug(error)
raise errors.LatexCompilationError(self.basename) raise errors.LatexCompilationError(self.basename)
if not self.interactive: if not self.interactive:

2
patacrep/content/tex.py

@ -40,7 +40,7 @@ def parse(keyword, argument, contentlist, config):
filelist = [] filelist = []
basefolders = [path.fullpath for path in config['_songdir']] +\ basefolders = [path.fullpath for path in config['_songdir']] +\
config['datadir'] + \ config['datadir'] + \
[ os.path.join(path, "latex") for path in config['datadir']] [os.path.join(path, "latex") for path in config['datadir']]
for filename in contentlist: for filename in contentlist:
checked_file = None checked_file = None
for path in basefolders: for path in basefolders:

Loading…
Cancel
Save