From 25d7ac1832d749dbd5499e9bea38d33f2339056a Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Tue, 12 Apr 2022 00:32:47 +0100 Subject: [PATCH] Update app.py using path to resolve themes dir --- vmcompact/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vmcompact/app.py b/vmcompact/app.py index c6188c1..049b690 100644 --- a/vmcompact/app.py +++ b/vmcompact/app.py @@ -106,7 +106,10 @@ class App(tk.Tk): def apply_theme(self): _base_vals.using_theme = True - self.tk.call("source", "./vmcompact/sun-valley-theme/sun-valley.tcl") + self.tk.call( + "source", + Path(__file__).parent.resolve() / "sun-valley-theme/sun-valley.tcl", + ) self.tk.call("set_theme", self.configuration["theme"]["mode"]) def _make_app(self, kind, vban=None):