Skip to content
Snippets Groups Projects
Commit 8f0db674 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Hardcoding in the build-in plugins for now, later this can be expanded with...

Hardcoding in the build-in plugins for now, later this can be expanded with configured plugins in addition to the standard fair.
parent 35220309
No related branches found
No related tags found
No related merge requests found
...@@ -16,18 +16,15 @@ __credits__ = [] ...@@ -16,18 +16,15 @@ __credits__ = []
PluginFolder = './plugins' PluginFolder = './plugins'
MainModule = '__init__' MainModule = '__init__'
plugins = ['plugins.apexparadigm',
'plugins.beacon',
'plugins.id',
'plugins.status']
def get_plugins(): def get_plugins():
plugins = []
possible_plugins = os.listdir(PluginFolder)
for i in possible_plugins:
location = os.path.join(PluginFolder, i)
if not os.path.isdir(location) or not MainModule + '.py' in os.listdir(location):
continue
plugins.append(i)
return plugins return plugins
def load_plugin(plugin): def load_plugin(plugin):
return importlib.import_module('plugins.' + plugin) return importlib.import_module(plugin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment