Fix an issue with double forward slashes in res paths (#1703)

This commit is contained in:
blitzmann
2018-08-21 20:58:38 -04:00
parent 2a076292da
commit 95899548e5
5 changed files with 1 additions and 0 deletions

View File

@@ -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]