去掉res2path无用的判断
This commit is contained in:
parent
9565ec33c6
commit
442021dc01
1 changed files with 1 additions and 2 deletions
|
@ -32,8 +32,7 @@ def img2bytes(img: tp.Image) -> bytes:
|
|||
|
||||
|
||||
def res2path(res: tp.Res) -> Path:
|
||||
if not res.startswith("@"):
|
||||
res = f"@install/arknights_mower/resources/{res}"
|
||||
res = f"@install/arknights_mower/resources/{res}"
|
||||
if not res.endswith(".jpg"):
|
||||
res += ".png"
|
||||
return get_path(res)
|
||||
|
|
Loading…
Reference in a new issue