Skip to content

Commit

Permalink
Populates plugin_dirs before importing plugins so it will be availabl…
Browse files Browse the repository at this point in the history
…e to plugins that depend on plugin_dirs
  • Loading branch information
RobRuana committed Apr 27, 2017
1 parent a8496c2 commit 7588903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sideboard/internal/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ def _discover_plugin_dirs():
def _discover_plugins():
for name, path in _discover_plugin_dirs():
sys.path.append(path)
plugins[name] = importlib.import_module(name)
plugin_dirs[name] = path

for name, path in plugin_dirs:
plugins[name] = importlib.import_module(name)

0 comments on commit 7588903

Please sign in to comment.