Skip to content

Commit

Permalink
Fixed an oversight in load_preset_plugins() that was preventing !load…
Browse files Browse the repository at this point in the history
…all in plugin_manager from working.
  • Loading branch information
MinoMino committed Dec 6, 2015
1 parent 5f24219 commit b22ba53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/minqlx/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ def load_preset_plugins():
plugins_dir = os.path.basename(plugins_path)

if os.path.isdir(plugins_path):
# Filter out already loaded plugins.
plugins = [p for p in plugins if "{}.{}".format(plugins_dir, p) not in sys.modules]
plugins = [p for p in plugins if "{}.{}".format(plugins_dir, p)]
for p in plugins:
load_plugin(p)
else:
Expand Down

0 comments on commit b22ba53

Please sign in to comment.