Add search path for the pyinstaller locations

Contributes to CURA-8640
This commit is contained in:
Jelle Spijker 2022-04-08 20:34:42 +02:00
parent d46679c19f
commit fb22a04d4d

View file

@ -350,6 +350,7 @@ class CuraApplication(QtApplication):
app_root = os.path.abspath(os.path.join(os.path.dirname(sys.executable)))
Resources.addSearchPath(os.path.join(app_root, "share", "cura", "resources"))
Resources.addSearchPath(os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "share", "cura", "resources"))
Resources.addSearchPath(os.path.join(self._app_install_dir, "share", "cura", "resources"))
if not hasattr(sys, "frozen"):