Skip to content

Commit 75bb7f9

Browse files
committed
restore png
1 parent 7848eed commit 75bb7f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/mediafiles/process_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def process_path(args, path):
205205

206206
# replace CSS
207207
base_folder = Path(__file__).resolve().parent
208-
shutil.copy(base_folder / ".." / "assets" / "calibre.css", output_path / "stylesheet.css")
208+
shutil.copy((base_folder / ".." / "assets" / "calibre.css").resolve(), output_path / "stylesheet.css")
209209

210210
# shrink images
211211
image_paths = file_utils.rglob(str(output_path), consts.IMAGE_EXTENSIONS, quiet=True)[0]

library/utils/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def raise_error(_self, *_args):
2323
style = Style(self.root)
2424
style.theme_use("clam")
2525

26-
photo = PhotoImage(file=str(base_folder / ".." / "assets" / "kotobago.png"))
26+
photo = PhotoImage(file=str((base_folder / ".." / "assets" / "kotobago.png").resolve()))
2727
self.root.wm_iconphoto(True, photo) # noqa: FBT003
2828
self.root.wm_attributes("-topmost", 1)
2929

0 commit comments

Comments
 (0)