Fix an issue with double forward slashes in res paths (#1703)
This commit is contained in:
@@ -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