Commit 8b74389e authored by w-e-w's avatar w-e-w

fix styles.csv filename

parent 23a0e60b
...@@ -98,10 +98,8 @@ class StyleDatabase: ...@@ -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"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment