Update app.py

using path to resolve themes dir
This commit is contained in:
onyx-and-iris 2022-04-12 00:32:47 +01:00
parent 987a4d8ecb
commit 25d7ac1832

View File

@ -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):