Skip to content

Commit b00dbf9

Browse files
committed
Squashed commit of the following:
commit 094b6d5 Author: Travis Abendshien <lvnvtravis@gmail.com> Date: Sun May 12 19:52:25 2024 -0700 Formatted using Ruff Co-Authored-By: yed podtrzitko <yedpodtrzitko@users.noreply.github.com> commit 088ef52 Author: Travis Abendshien <lvnvtravis@gmail.com> Date: Sun May 12 19:51:03 2024 -0700 Reduced QResource Usage + Path Refactor - Removed unused or redundant QResources - Removed unreliable uses of the Qt resource system in favor of direct paths - Refactored paths with "parent.parent.parent" to use ".parents[index]" Co-Authored-By: yed podtrzitko <yedpodtrzitko@users.noreply.github.com>
1 parent f8d44c5 commit b00dbf9

10 files changed

Lines changed: 36 additions & 30825 deletions

File tree

tagstudio/src/cli/ts_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, core, args):
8484

8585
self.external_preview_size: tuple[int, int] = (960, 960)
8686
epd_path = os.path.normpath(
87-
f"{Path(__file__).parent.parent.parent}/resources/cli/images/external_preview.png"
87+
f"{Path(__file__).parents[2]}/resources/cli/images/external_preview.png"
8888
)
8989
self.external_preview_default: Image = (
9090
Image.open(epd_path)
@@ -93,7 +93,7 @@ def __init__(self, core, args):
9393
)
9494
self.external_preview_default.thumbnail(self.external_preview_size)
9595
epb_path = os.path.normpath(
96-
f"{Path(__file__).parent.parent.parent}/resources/cli/images/no_preview.png"
96+
f"{Path(__file__).parents[2]}/resources/cli/images/no_preview.png"
9797
)
9898
self.external_preview_broken: Image = (
9999
Image.open(epb_path)

0 commit comments

Comments
 (0)