From b23cc40e4ad9ad94f552f3cc899eece5d39001c1 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Fri, 2 Feb 2018 23:42:34 +0100 Subject: [PATCH] little changes (comment/todo) --- boswatch/plugin/pluginManager.py | 2 +- boswatch/utils/paths.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/boswatch/plugin/pluginManager.py b/boswatch/plugin/pluginManager.py index a64cda3..e1c541e 100644 --- a/boswatch/plugin/pluginManager.py +++ b/boswatch/plugin/pluginManager.py @@ -36,7 +36,7 @@ class PluginManager: self._config = Config() self._pluginList = [] - def getPluginList(self): + def searchPluginDir(self): logging.debug("search for plugins in: %s", paths.PLUGIN_PATH) for name in os.listdir(paths.PLUGIN_PATH): location = os.path.join(paths.PLUGIN_PATH, name) diff --git a/boswatch/utils/paths.py b/boswatch/utils/paths.py index 3da00d4..486bee2 100644 --- a/boswatch/utils/paths.py +++ b/boswatch/utils/paths.py @@ -20,6 +20,7 @@ import sys logging.debug("- %s loaded", __name__) +# todo searching for root part is not a nice solution atm ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/") + "/../" LOG_PATH = ROOT_PATH + "log/" CONFIG_PATH = ROOT_PATH + "config/"