diff --git a/ks_includes/KlippyGtk.py b/ks_includes/KlippyGtk.py index ced8f081..5487aa95 100644 --- a/ks_includes/KlippyGtk.py +++ b/ks_includes/KlippyGtk.py @@ -122,7 +122,8 @@ class KlippyGtk: height = height if height is not None else self.img_height filename = os.path.join(self.themedir, filename) for ext in ["svg", "png"]: - pixbuf = self.PixbufFromFile(f"{filename}.{ext}", int(width), int(height)) + file = f"{filename}.{ext}" + pixbuf = self.PixbufFromFile(file, int(width), int(height)) if os.path.exists(file) else None if pixbuf is not None: return pixbuf return None