From 1c4b48c9e754f325699a65dcfbf1202eb9f0d7ec Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 4 Jan 2016 18:58:51 +0100 Subject: [PATCH] Simplify lilypond check --- patacrep/build.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/patacrep/build.py b/patacrep/build.py index 94416383..96a09424 100644 --- a/patacrep/build.py +++ b/patacrep/build.py @@ -148,9 +148,7 @@ class Songbook: def requires_lilypond(self): """Tell if lilypond is part of the bookoptions""" - return ('chords' in self._config - and 'lilypond' in self._config['chords'] - and self._config['chords']['lilypond']) + return 'lilypond' in iter_bookoptions(self._config) def _log_pipe(pipe): """Log content from `pipe`."""