Fix an issue with double forward slashes in res paths (#1703)
This commit is contained in:
BIN
imgs/renders/21344.png
Normal file
BIN
imgs/renders/21344.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
BIN
imgs/renders/21362.png
Normal file
BIN
imgs/renders/21362.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
imgs/renders/21405.png
Normal file
BIN
imgs/renders/21405.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
BIN
imgs/renders/21406.png
Normal file
BIN
imgs/renders/21406.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
@@ -141,6 +141,7 @@ def get_icon_file(res_path, size):
|
||||
icon for it. Return as PIL image object down-
|
||||
scaled for use in pyfa.
|
||||
"""
|
||||
res_path = res_path.replace('//', '/') #1703
|
||||
if res_path not in res_index:
|
||||
return None
|
||||
res_icon = res_index[res_path]
|
||||
|
||||
Reference in New Issue
Block a user