# HG changeset patch
# User Edouard Tisserant
# Date 1592224181 -7200
# Node ID 80e7eb44cab4a99a211c22d9edc0416624f363d2
# Parent  4bc60e426dd6b3e5f4449854e4a8ad5eb02a3e20
BACnet and Modbus : fix configuration storage directory

diff -r 4bc60e426dd6 -r 80e7eb44cab4 bacnet/web_settings.py
--- a/bacnet/web_settings.py	Mon Jun 15 14:27:58 2020 +0200
+++ b/bacnet/web_settings.py	Mon Jun 15 14:29:41 2020 +0200
@@ -69,8 +69,7 @@
 # before it gets a chance to start running
 #
 #_BACnetConfFilename = None
-_BACnetConfFilename = "/tmp/BeremizBACnetConfig.json"
-
+_BACnetConfFilename = os.path.join(WorkingDir, "bacnetconf.json")
 
 
 
diff -r 4bc60e426dd6 -r 80e7eb44cab4 modbus/web_settings.py
--- a/modbus/web_settings.py	Mon Jun 15 14:27:58 2020 +0200
+++ b/modbus/web_settings.py	Mon Jun 15 14:29:41 2020 +0200
@@ -46,8 +46,7 @@
 
 # Directory in which to store the persistent configurations
 # Should be a directory that does not get wiped on reboot!
-# TODO FIXME WTF
-_ModbusConfFiledir = "/tmp"
+_ModbusConfFiledir = WorkingDir
 
 # List of all Web Extension Setting nodes we are handling.
 # One WebNode each for: