Skeleton for autostorage extension
This commit is contained in:
parent
356ff3336b
commit
7209700343
3 changed files with 40 additions and 1 deletions
|
|
@ -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:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue