mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for new installs
This commit is contained in:
@@ -7549,6 +7549,8 @@ def UI_2_var_change(data):
|
||||
else:
|
||||
filename = "settings/{}.v2_settings".format(classname)
|
||||
|
||||
if not os.path.exists("settings"):
|
||||
os.mkdir("settings")
|
||||
with open(filename, "w") as settings_file:
|
||||
settings_file.write(getattr(koboldai_vars, "_{}".format(classname)).to_json())
|
||||
|
||||
|
Reference in New Issue
Block a user