From 6dfd48c512455ffbe0a9f1e6a81930ab91b60e2e Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Fri, 27 Oct 2023 16:31:03 +0200 Subject: [PATCH] Add venv/share to search_paths Contribute to CURA-10561 --- UM/Application.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UM/Application.py b/UM/Application.py index 9434558725..256251d944 100644 --- a/UM/Application.py +++ b/UM/Application.py @@ -185,8 +185,10 @@ def initialize(self) -> None: Resources.addSecureSearchPath(os.path.join(self._app_install_dir, "Resources", self._app_name, "resources")) if not hasattr(sys, "frozen"): + Resources.addSearchPath(str(Path(sys.executable).parent.joinpath("share", "cura", "resources"))) Resources.addSearchPath(str(Path(__file__).parent.parent.joinpath("resources"))) Resources.addSearchPath(str(Path(__file__).parent.parent.joinpath("plugins"))) + Resources.addSearchPath(str(Path(sys.executable).parent.joinpath("share", "cura", "plugins"))) # local Conan cache Resources.addSearchPath(str(Path(__file__).parent.parent.parent.joinpath("resources")))