From 8fdc773ac8d5536bb705f95cb9a2caad04363900 Mon Sep 17 00:00:00 2001 From: Eric-Joker <60310368+Eric-Joker@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:24:15 +0800 Subject: [PATCH] fix: Doesn't generate hotkey icon --- utils/diver/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/diver/utils.py b/utils/diver/utils.py index d785010..537f32d 100644 --- a/utils/diver/utils.py +++ b/utils/diver/utils.py @@ -369,7 +369,7 @@ def check(self, path, x, y, mask=None, threshold=None, large=True): threshold = self.threshold path = self.format_path(path) target = cv.imread(path) - if path == './imgs/f.jpg' and config.mapping[0]!='f': + if path == 'imgs/f.jpg' and config.mapping[0]!='f': target = self.gen_hotkey_img(config.mapping[0]) threshold -= 0.01 target = cv.resize( @@ -1569,4 +1569,4 @@ def bless(self): time.sleep(1.7) self.get_screen() if not self.check("choose_bless", 0.9266, 0.9491, threshold=0.945): - return \ No newline at end of file + return