Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
really load only commands for help
  • Loading branch information
ralsina committed Aug 15, 2015
1 parent 8033e1a commit eb50afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/nikola.py
Expand Up @@ -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."""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eb50afc

Please sign in to comment.