Skip to content

Commit

Permalink
Set CURA_RESOURCES env
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jellespijker committed May 6, 2024
1 parent 9824c57 commit 8be474d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def package(self):

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()

0 comments on commit 8be474d

Please sign in to comment.