mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-26 00:17:41 +01:00
bug-fix if settings directory is a symlink.
This commit is contained in:
parent
d12a6a5620
commit
47ec22873d
@ -2199,6 +2199,7 @@ def savesettings():
|
|||||||
|
|
||||||
# Write it
|
# Write it
|
||||||
if not os.path.exists('settings'):
|
if not os.path.exists('settings'):
|
||||||
|
if not os.path.islink('settings'):
|
||||||
os.mkdir('settings')
|
os.mkdir('settings')
|
||||||
file = open("settings/" + getmodelname().replace('/', '_') + ".settings", "w")
|
file = open("settings/" + getmodelname().replace('/', '_') + ".settings", "w")
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user