Added write_configuration method
This commit is contained in:
parent
196e2d635f
commit
771b4a303c
@ -289,7 +289,10 @@ cfg.add_section("debug", desc="", entries=[
|
||||
settings = ReginaSettings(cfg)
|
||||
# settings.load("generated-default.cfg")
|
||||
|
||||
if __name__ == "__main__":
|
||||
def write_config():
|
||||
# export the configuration as generated-default.cfg
|
||||
with open("generated-default.cfg", "w") as file:
|
||||
with open("regina-default.cfg", "w") as file:
|
||||
file.write(f"{cfg}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
write_config()
|
||||
|
Loading…
Reference in New Issue
Block a user