Update pyinstaller for mac

This commit is contained in:
c.lamboo 2024-01-26 10:36:13 +01:00
parent 36f1932dbb
commit 1bf789f6f4
5 changed files with 10 additions and 186 deletions

View file

@ -374,8 +374,10 @@ class CuraApplication(QtApplication):
app_root = os.path.abspath(os.path.join(os.path.dirname(sys.executable)))
Resources.addSecureSearchPath(os.path.join(app_root, "share", "cura", "resources"))
Resources.addSecureSearchPath(os.path.join(app_root, "Resources", "share", "cura", "resources"))
Resources.addSecureSearchPath(os.path.join(self._app_install_dir, "share", "cura", "resources"))
Resources.addSecureSearchPath(os.path.join(self._app_install_dir, "Resources", "share", "cura", "resources"))
if not hasattr(sys, "frozen"):
cura_data_root = os.environ.get('CURA_DATA_ROOT', None)
if cura_data_root:
@ -389,6 +391,7 @@ class CuraApplication(QtApplication):
# venv site-packages
Resources.addSearchPath(os.path.join(app_root, "..", "share", "cura", "resources"))
Resources.addSearchPath(os.path.join(app_root, "..", "Resources", "share", "cura", "resources"))
@classmethod
def _initializeSettingDefinitions(cls):