summaryrefslogtreecommitdiff
path: root/sphinx/application.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2017-01-07 02:13:50 +0900
committershimizukawa <shimizukawa@gmail.com>2017-01-07 02:14:29 +0900
commit4c22cd10caa7b9621ece480fade5653d65226fcc (patch)
tree19a64268e9814dfa12087dc2d432c5339a23a0a9 /sphinx/application.py
parentf695aac2e28e1463385b399b61fc2c4b4ef40c5c (diff)
parent620616cdbd92147f6ea7bbeb670dc3a0562235ff (diff)
downloadsphinx-git-4c22cd10caa7b9621ece480fade5653d65226fcc.tar.gz
Merge branch 'stable'
Diffstat (limited to 'sphinx/application.py')
-rw-r--r--sphinx/application.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index 7a4736d42..307d63073 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -812,7 +812,8 @@ class Sphinx(object):
def add_latex_package(self, packagename, options=None):
# type: (unicode, unicode) -> None
logger.debug('[app] adding latex package: %r', packagename)
- self.builder.usepackages.append((packagename, options))
+ if hasattr(self.builder, 'usepackages'): # only for LaTeX builder
+ self.builder.usepackages.append((packagename, options))
def add_lexer(self, alias, lexer):
# type: (unicode, Any) -> None