BACnet and Modbus : fix configuration storage directory
authorEdouard Tisserant
Mon, 15 Jun 2020 14:29:41 +0200
changeset 2673 80e7eb44cab4
parent 2672 4bc60e426dd6
child 2674 a8975ff44cd1
BACnet and Modbus : fix configuration storage directory
bacnet/web_settings.py
modbus/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")
 
 
 
--- 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: