mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-21 06:03:50 +00:00
little changes (comment/todo)
This commit is contained in:
parent
bf7fdc189e
commit
b23cc40e4a
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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/"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue