File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ def process_path(args, path):
205
205
206
206
# replace CSS
207
207
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" )
209
209
210
210
# shrink images
211
211
image_paths = file_utils .rglob (str (output_path ), consts .IMAGE_EXTENSIONS , quiet = True )[0 ]
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def raise_error(_self, *_args):
23
23
style = Style (self .root )
24
24
style .theme_use ("clam" )
25
25
26
- photo = PhotoImage (file = str (base_folder / ".." / "assets" / "kotobago.png" ))
26
+ photo = PhotoImage (file = str (( base_folder / ".." / "assets" / "kotobago.png" ). resolve () ))
27
27
self .root .wm_iconphoto (True , photo ) # noqa: FBT003
28
28
self .root .wm_attributes ("-topmost" , 1 )
29
29
You can’t perform that action at this time.
0 commit comments