Fix data directory save location and mount path

This commit is contained in:
Julian Stirling 2026-05-10 13:57:12 +01:00
parent fa5aaaf254
commit b6efb73cba
4 changed files with 13 additions and 7 deletions

View file

@ -31,7 +31,7 @@ class OFMThing(lt.Thing):
raise ValueError("No application configuration was supplied.")
app_data_dir = application_config["data_folder"]
self._data_dir = os.path.join(
os.path.normpath(str(app_data_dir)), os.path.normpath(self.path.strip("/"))
os.path.normpath(str(app_data_dir)), os.path.normpath(self.name)
)
return self