mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Allow sideloading of resources via env
`CURA_DATA_ROOT` and `URANIUM_DATA_ROOT` This allows the conanfile.py to point to `venv/share/cura` This functionality is disabled in sys.frozen Contributes to CURA-10561
This commit is contained in:
parent
94eb9e1a21
commit
16249e490e
2 changed files with 7 additions and 0 deletions
|
@ -67,6 +67,8 @@ class CuraConan(ConanFile):
|
|||
self._cura_env = Environment()
|
||||
self._cura_env.define("QML2_IMPORT_PATH", str(self._site_packages.joinpath("PyQt6", "Qt6", "qml")))
|
||||
self._cura_env.define("QT_PLUGIN_PATH", str(self._site_packages.joinpath("PyQt6", "Qt6", "plugins")))
|
||||
if not self.in_local_cache:
|
||||
self._cura_env.define( "CURA_DATA_ROOT", str(self._share_dir.joinpath("cura")))
|
||||
|
||||
if self.settings.os == "Linux":
|
||||
self._cura_env.define("QT_QPA_FONTDIR", "/usr/share/fonts")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue