mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-06 15:15:05 +08:00
fix styles.csv filename
This commit is contained in:
parent
23a0e60b9b
commit
8b74389e76
@ -98,10 +98,8 @@ class StyleDatabase:
|
|||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
folder, file = os.path.split(self.path)
|
folder, file = os.path.split(self.path)
|
||||||
self.default_file = file.split("*")[0] + ".csv"
|
filename, _, ext = file.partition('*')
|
||||||
if self.default_file == ".csv":
|
self.default_path = os.path.join(folder, filename + ext)
|
||||||
self.default_file = "styles.csv"
|
|
||||||
self.default_path = os.path.join(folder, self.default_file)
|
|
||||||
|
|
||||||
self.prompt_fields = [field for field in PromptStyle._fields if field != "path"]
|
self.prompt_fields = [field for field in PromptStyle._fields if field != "path"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user