Skeleton for autostorage extension

This commit is contained in:
Joel Collins 2020-02-18 11:40:14 +00:00
parent 356ff3336b
commit 7209700343
3 changed files with 40 additions and 1 deletions

View file

@ -32,7 +32,8 @@ class OpenflexureSettingsFile:
self.path = path
# Initialise basic config file with defaults if it doesn't exist
initialise_file(self.path, populate=defaults)
defaults_str = json.dumps(defaults, cls=JSONEncoder, indent=2, sort_keys=True)
initialise_file(self.path, populate=defaults_str)
def load(self) -> dict:
"""