Browse Source

Set CURA_RESOURCES env

Additional paths for Cura resources are appended in the package information, for use in defining the Cura resource directory. This modification enhances the path setup in conanfile.py, offering greater versatility for referencing Cura resources.

Contribute to NP-186
Jelle Spijker 10 months ago
parent
commit
8be474df39
1 changed files with 2 additions and 0 deletions
  1. 2 0
      resources/conanfile.py

+ 2 - 0
resources/conanfile.py

@@ -58,6 +58,8 @@ class CuraResource(ConanFile):
 
     def package_info(self):
         self.cpp_info.includedirs = []
+        self.runenv_info.append_path("CURA_RESOURCES", os.path.join(self.package_folder, "res"))
+        self.env_info.CURA_RESOURCES.append_path(os.path.join(self.package_folder, "res"))
 
     def package_id(self):
         self.info.clear()