little changes (comment/todo)

This commit is contained in:
Bastian Schroll 2018-02-02 23:42:34 +01:00
parent bf7fdc189e
commit b23cc40e4a
2 changed files with 2 additions and 1 deletions

View file

@ -36,7 +36,7 @@ class PluginManager:
self._config = Config() self._config = Config()
self._pluginList = [] self._pluginList = []
def getPluginList(self): def searchPluginDir(self):
logging.debug("search for plugins in: %s", paths.PLUGIN_PATH) logging.debug("search for plugins in: %s", paths.PLUGIN_PATH)
for name in os.listdir(paths.PLUGIN_PATH): for name in os.listdir(paths.PLUGIN_PATH):
location = os.path.join(paths.PLUGIN_PATH, name) location = os.path.join(paths.PLUGIN_PATH, name)

View file

@ -20,6 +20,7 @@ import sys
logging.debug("- %s loaded", __name__) 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("\\", "/") + "/../" ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/") + "/../"
LOG_PATH = ROOT_PATH + "log/" LOG_PATH = ROOT_PATH + "log/"
CONFIG_PATH = ROOT_PATH + "config/" CONFIG_PATH = ROOT_PATH + "config/"