From 5cd497c68ac506de48015c2a132694d5021de176 Mon Sep 17 00:00:00 2001 From: cidoku Date: Fri, 20 Mar 2026 16:53:46 -0300 Subject: [PATCH] unicodify --- gameview.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gameview.py b/gameview.py index 5de0703..710f753 100644 --- a/gameview.py +++ b/gameview.py @@ -293,15 +293,17 @@ class AOCharMovie(QtGui.QLabel): def findSprite(self, char, emote, prefix): bases = [ - "{char}/{prefix}{emote}", - "{char}/{emote}", - "{char}/{prefix}/{emote}" + u"{char}/{prefix}{emote}", + u"{char}/{emote}", + u"{char}/{prefix}/{emote}" ] - exts = [".apng", ".png", ".gif", ".webp"] + exts = [u".apng", u".png", u".gif", u".webp"] + + base_path = unicode(BASE_PATH) for base in bases: for ext in exts: - path = BASE_PATH + "characters/" + base.format(char=char, prefix=prefix, emote=emote) + ext + path = base_path + u"characters/" + base.format(char=char, prefix=prefix, emote=emote) + ext if exists(path): return path, ext return None, None