mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 09:57:49 +02:00
Remove the old config.json file
This commit is contained in:
parent
95334715ab
commit
4959e52559
@ -142,7 +142,7 @@ def getConfig(default_val=APP_CONFIG_DEFAULTS):
|
|||||||
|
|
||||||
with open(config_json_path + ".txt", "w") as f:
|
with open(config_json_path + ".txt", "w") as f:
|
||||||
f.write("Moved to config.yaml inside the Easy Diffusion folder. You can open it in any text editor.")
|
f.write("Moved to config.yaml inside the Easy Diffusion folder. You can open it in any text editor.")
|
||||||
# intentionally writing invalid json, to alert any scripts that depend on this file
|
os.remove(config_json_path)
|
||||||
|
|
||||||
return getConfig(default_val)
|
return getConfig(default_val)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user