Browse Source

Nettoyage

pull/25/head
Luthaf 11 years ago
parent
commit
9cb4f1a3d4
  1. 11
      songbook_core/build.py

11
songbook_core/build.py

@ -7,7 +7,7 @@ import codecs
import glob import glob
import os.path import os.path
import re import re
import subprocess from subprocess import Popen, PIPE, call
from songbook_core import __DATADIR__ from songbook_core import __DATADIR__
from songbook_core import errors from songbook_core import errors
@ -228,13 +228,6 @@ class SongbookBuilder(object):
def build_pdf(self): def build_pdf(self):
"""Build .pdf file from .tex file""" """Build .pdf file from .tex file"""
self._run_once(self._set_latex) self._run_once(self._set_latex)
from subprocess import Popen, PIPE
#if self.logger:
# out = self.logger.stream
#else:
# out = None
p = Popen( p = Popen(
["pdflatex"] + self._pdflatex_options + [self.basename], ["pdflatex"] + self._pdflatex_options + [self.basename],
stdout=PIPE, stdout=PIPE,
@ -262,7 +255,7 @@ class SongbookBuilder(object):
@staticmethod @staticmethod
def build_custom(command): def build_custom(command):
"""Run a shell command""" """Run a shell command"""
exit_code = subprocess.call(command, shell=True) exit_code = call(command, shell=True)
if exit_code: if exit_code:
raise errors.StepCommandError(command, exit_code) raise errors.StepCommandError(command, exit_code)

Loading…
Cancel
Save