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):
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 ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments