diff options
author | kballou <kballou@devnulllabs.io> | 2014-09-04 00:12:50 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2014-09-04 00:19:05 -0600 |
commit | 5c5339ea0cc76d8d6d7a5e643aeee319c3079e86 (patch) | |
tree | 7c282e3bfbb53844341c36f5ffc90046f681a39f /xnt | |
parent | 87126e29aac5c8179748570b62d0f695a220ff67 (diff) | |
download | xnt-5c5339ea0cc76d8d6d7a5e643aeee319c3079e86.tar.gz xnt-5c5339ea0cc76d8d6d7a5e643aeee319c3079e86.tar.xz |
Read VERBOSE flag from fully qualified module
The value of `VERBOSE` is locally bound before the change to
`xnt.verbose.VERBOSE` occurs. Thus, reading the local `VERBOSE` value
does not have the desired effect. Read from the fully qualified module
variable.
Diffstat (limited to 'xnt')
-rw-r--r-- | xnt/tasks/build/tex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xnt/tasks/build/tex.py b/xnt/tasks/build/tex.py index 629864e..0243258 100644 --- a/xnt/tasks/build/tex.py +++ b/xnt/tasks/build/tex.py @@ -19,7 +19,7 @@ import os import logging -from xnt.verbose import VERBOSE +import xnt.verbose LOGGER = logging.getLogger(__name__) @@ -39,7 +39,7 @@ def __pdflatex__(document, """ def __execute__(**kwargs): '''Perform pdflatex build''' - devnull = None if VERBOSE else open(os.devnull, 'w') + devnull = None if xnt.verbose.VERBOSE else open(os.devnull, 'w') documentbase = os.path.splitext(document)[0] def pdf(draftmode=False): """Generate PDF""" |