mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-21 06:03:50 +00:00
add system adaption for config path
This commit is contained in:
parent
478868c225
commit
449c8f9726
1 changed files with 2 additions and 1 deletions
|
|
@ -27,10 +27,11 @@ ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/")
|
||||||
# implements a system adaption for the paths
|
# implements a system adaption for the paths
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
LOG_PATH = "/var/log/boswatch/"
|
LOG_PATH = "/var/log/boswatch/"
|
||||||
|
CONFIG_PATH = "/etc/boswatch/"
|
||||||
else:
|
else:
|
||||||
LOG_PATH = ROOT_PATH + "log/"
|
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/"
|
||||||
BIN_PATH = ROOT_PATH + "_bin/"
|
BIN_PATH = ROOT_PATH + "_bin/"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue