Skip to content

Commit

Permalink
Add venv/share to search_paths
Browse files Browse the repository at this point in the history
Contribute to CURA-10561
  • Loading branch information
jellespijker committed Oct 27, 2023
1 parent 18aad1a commit 6dfd48c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UM/Application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Expand Down

0 comments on commit 6dfd48c

Please sign in to comment.