configurator: fix configurator building

This commit is contained in:
souldbminersmwc committed 2025-10-03 16:40:29 -04:00
1 parent 6b8f62de5c
commit 403c2124d3
24 files changed
+57 -10

No files matched your search

+5 -4
View File
@@ -30,6 +30,7 @@ import common as c
import sys
import os
import webbrowser
import ctypes
import kip as k
import gpu
@@ -43,10 +44,10 @@ import misc
true = True
false = False
if getattr(sys, 'frozen', False):
assets_path = os.path.join(sys._MEIPASS, 'assets/')
else:
assets_path = os.path.join(os.path.dirname(__file__), '../assets/')
# if getattr(sys, 'frozen', False):
assets_path = os.path.join(sys._MEIPASS, 'assets/')
# else:
# assets_path = os.path.join(os.path.dirname(__file__), '../assets/')
cooler_image_path = assets_path + "coolerhd.png" # coolerHD Emoji from OC server
cooler_image = Image.open(cooler_image_path).convert("RGBA")