From 8f0db6741ec804ba256f5051895fb95b993bf8b8 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com>
Date: Sun, 25 Sep 2016 07:37:40 -0400
Subject: [PATCH] Hardcoding in the build-in plugins for now, later this can be
 expanded with configured plugins in addition to the standard fair.

---
 src/apex/plugin_loader.py | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/apex/plugin_loader.py b/src/apex/plugin_loader.py
index c3f5916..81a82c6 100644
--- a/src/apex/plugin_loader.py
+++ b/src/apex/plugin_loader.py
@@ -16,18 +16,15 @@ __credits__ = []
 PluginFolder = './plugins'
 MainModule = '__init__'
 
+plugins = ['plugins.apexparadigm',
+           'plugins.beacon',
+           'plugins.id',
+           'plugins.status']
+
 
 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
 
 
 def load_plugin(plugin):
-    return importlib.import_module('plugins.' + plugin)
+    return importlib.import_module(plugin)
-- 
GitLab