mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 21:09:00 +08:00
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
This commit is contained in:
parent
9824c5703c
commit
8be474df39
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user