mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
always reset plugin modules on collection
This commit is contained in:
parent
8e7c96626f
commit
c3e4a56021
@ -131,6 +131,8 @@ class Plugins:
|
||||
# region general plugin managment mechanisms
|
||||
def collect_plugins(self):
|
||||
"""collect integration plugins from all possible ways of loading"""
|
||||
self.plugin_modules = [] # clear
|
||||
|
||||
# Collect plugins from paths
|
||||
for plugin in settings.PLUGIN_DIRS:
|
||||
modules = inventree_plugins.get_plugins(importlib.import_module(plugin), IntegrationPluginBase, True)
|
||||
|
Loading…
Reference in New Issue
Block a user