Use the app_root to obtain the resources

Contributes to CURA-9365
This commit is contained in:
j.spijker@ultimaker.com 2022-07-08 09:26:27 +02:00 committed by jspijker
parent 1c77eb07a4
commit 8500e34f25

View file

@ -362,7 +362,7 @@ class CuraApplication(QtApplication):
Resources.addSearchPath(os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "..", "plugins"))
# venv site-packages
Resources.addSearchPath(os.path.join(os.path.dirname(sys.executable), "..", "share", "cura", "resources"))
Resources.addSearchPath(os.path.join(app_root, "..", "share", "cura", "resources"))
@classmethod
def _initializeSettingDefinitions(cls):