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 91eadc8 commit 8c93c33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/conan-package.yml
Expand Up @@ -14,6 +14,7 @@ on:
- master
- 'PP-*'
- 'CURA-*'
- 'NP-*'
- '[0-9].[0-9]*'

jobs:
Expand Down
2 changes: 2 additions & 0 deletions conanfile.py
Expand Up @@ -42,6 +42,8 @@ def package(self):
def package_info(self):
self.cpp_info.includedirs = []
self.cpp_info.resdirs = ["res"]
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 8c93c33

Please sign in to comment.