add system adaption for config path

This commit is contained in:
Bastian Schroll 2018-09-20 09:51:47 +02:00
parent 478868c225
commit 449c8f9726

View file

@ -27,10 +27,11 @@ ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/")
# implements a system adaption for the paths
if platform.system() == "Linux":
LOG_PATH = "/var/log/boswatch/"
CONFIG_PATH = "/etc/boswatch/"
else:
LOG_PATH = ROOT_PATH + "log/"
CONFIG_PATH = ROOT_PATH + "config/"
CONFIG_PATH = ROOT_PATH + "config/"
PLUGIN_PATH = ROOT_PATH + "plugins/"
CSV_PATH = ROOT_PATH + "csv/"
BIN_PATH = ROOT_PATH + "_bin/"