From 9411d7328934d33b432b2ae41f6c7eea395ccfb8 Mon Sep 17 00:00:00 2001 From: Jacob Chapman <7908073+chapmanjacobd@users.noreply.github.com> Date: Fri, 3 Jan 2025 05:50:40 +0000 Subject: [PATCH] restore png --- library/mediafiles/process_text.py | 2 +- library/utils/gui.py | 2 +- xklb/assets/kotobago.png | Bin 0 -> 8385 bytes 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 xklb/assets/kotobago.png diff --git a/library/mediafiles/process_text.py b/library/mediafiles/process_text.py index cfb22b1d..9f63bd39 100644 --- a/library/mediafiles/process_text.py +++ b/library/mediafiles/process_text.py @@ -205,7 +205,7 @@ def process_path(args, path): # replace CSS base_folder = Path(__file__).resolve().parent - shutil.copy(base_folder / ".." / "assets" / "calibre.css", output_path / "stylesheet.css") + shutil.copy((base_folder / ".." / "assets" / "calibre.css").resolve(), output_path / "stylesheet.css") # shrink images image_paths = file_utils.rglob(str(output_path), consts.IMAGE_EXTENSIONS, quiet=True)[0] diff --git a/library/utils/gui.py b/library/utils/gui.py index ce10372a..2f8e978e 100644 --- a/library/utils/gui.py +++ b/library/utils/gui.py @@ -23,7 +23,7 @@ def raise_error(_self, *_args): style = Style(self.root) style.theme_use("clam") - photo = PhotoImage(file=str(base_folder / ".." / "assets" / "kotobago.png")) + photo = PhotoImage(file=str((base_folder / ".." / "assets" / "kotobago.png").resolve())) self.root.wm_iconphoto(True, photo) # noqa: FBT003 self.root.wm_attributes("-topmost", 1) diff --git a/xklb/assets/kotobago.png b/xklb/assets/kotobago.png new file mode 100644 index 0000000000000000000000000000000000000000..d07a8c1533cd08c9f58892221b999f3b251f0e8e GIT binary patch literal 8385 zcmV;yAU@xTP)ZCoOfE}CRgdraHu#UiIeoalq&VY^vUXwv})@;`u{}xcg*+c zt8w7{N!I)E9OOG{erk={z5NJ%MBaQsRn0mLOl){|Qm zst4aa1me@5?~eT-Wwalmvd^4s;x`KeObMit-?QT={de7`NDr@mPP}&V3bEU1rD{%s zMN}8@^HM6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