Skip to content

Commit

Permalink
fix styles.csv filename
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Dec 10, 2023
1 parent 3e8776a commit ee1463d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ def __init__(self, path: str):
self.path = path

folder, file = os.path.split(self.path)
self.default_file = file.split("*")[0] + ".csv"
if self.default_file == ".csv":
self.default_file = "styles.csv"
self.default_path = os.path.join(folder, self.default_file)
filename, _, ext = file.partition('*')
self.default_path = os.path.join(folder, filename + ext)

self.prompt_fields = [field for field in PromptStyle._fields if field != "path"]

Expand Down

0 comments on commit ee1463d

Please sign in to comment.