SD-WebUI / patch /styles.patch
WuLing's picture
Upload styles.patch
2675c11
raw
history blame
372 Bytes
--- styles.py 2023-03-21 14:06:37.886175393 +0000
+++ styles_fix.py 2023-03-21 14:09:13.003901716 +0000
@@ -83,5 +83,5 @@
# Always keep a backup file around
if os.path.exists(path):
- shutil.move(path, path + ".bak")
- shutil.move(temp_path, path)
+ shutil.copy2(path, path + ".bak")
+ shutil.copy2(temp_path, path)