Merge pull request #41 from sansmoraxz/patch-1

Fix image path resolution for windows
This commit is contained in:
Hayden
2024-11-04 11:13:20 +08:00
committed by GitHub

View File

@@ -137,6 +137,7 @@ def file_list_to_name_dict(files: list[str]):
file_dict: dict[str, str] = {}
for file in files:
filename = os.path.splitext(file)[0]
filename = filename.replace(os.path.sep, "/")
file_dict[filename] = file
return file_dict