Skip to content
Permalink
Browse files
really load only commands for help
  • Loading branch information
ralsina committed Aug 15, 2015
1 parent 8033e1a commit eb50afcc93b5eb537bbd0733e979ff2f9f711a31
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/nikola.py
@@ -715,7 +715,6 @@ def __init__(self, **config):
self.bad_compilers.add(k)

self._set_global_context()
self.init_plugins()

def init_plugins(self, commands_only=False):
"""Load plugins as needed."""
@@ -754,7 +753,8 @@ def init_plugins(self, commands_only=False):
for p in self.plugin_manager._candidates:
if commands_only:
if p[-1].details.has_option('Nikola', 'plugincategory'):
if p[-1].details.get('Nikola', 'PluginCategory') != 'Command':
# FIXME TemplateSystem should not be needed
if p[-1].details.get('Nikola', 'PluginCategory') not in {'Command', 'Template'}:
bad_candidates.add(p)
else: # Not commands-only
# Remove compilers we don't use

0 comments on commit eb50afc

Please sign in to comment.