mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-01-04 15:49:57 +01:00
logs on linux in /var/log/boswatch/
on windows in log/ folder
This commit is contained in:
parent
3564680867
commit
16a8424b80
|
|
@ -17,12 +17,18 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import platform
|
||||||
|
|
||||||
logging.debug("- %s loaded", __name__)
|
logging.debug("- %s loaded", __name__)
|
||||||
|
|
||||||
# todo searching for root part is not a nice solution atm
|
# 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/"
|
|
||||||
|
if platform.system() is "Linux":
|
||||||
|
LOG_PATH = "/var/log/boswatch/"
|
||||||
|
else:
|
||||||
|
LOG_PATH = ROOT_PATH + "log/"
|
||||||
|
|
||||||
CONFIG_PATH = ROOT_PATH + "config/"
|
CONFIG_PATH = ROOT_PATH + "config/"
|
||||||
PLUGIN_PATH = ROOT_PATH + "plugins/"
|
PLUGIN_PATH = ROOT_PATH + "plugins/"
|
||||||
CSV_PATH = ROOT_PATH + "csv/"
|
CSV_PATH = ROOT_PATH + "csv/"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue