Skip to content

Commit

Permalink
restore png
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed Jan 3, 2025
1 parent 7848eed commit 9411d73
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/mediafiles/process_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion library/utils/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Binary file added xklb/assets/kotobago.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9411d73

Please sign in to comment.