handle local packages correctly

Contributes to CURA-9365
This commit is contained in:
j.spijker@ultimaker.com 2022-07-07 19:49:04 +02:00 committed by jspijker
parent ab4c62e46f
commit c22999c314

View File

@ -143,7 +143,10 @@ class CuraConan(ConanFile):
for data in pyinstaller_metadata["datas"].values():
if "package" in data: # get the paths from conan package
if data["package"] == self.name:
src_path = Path(self.package_folder, data["src"])
if self.in_local_cache:
src_path = Path(self.package_folder, data["src"])
else:
src_path = Path(self.source_folder, data["src"])
else:
src_path = Path(self.deps_cpp_info[data["package"]].rootpath, data["src"])
elif "root" in data: # get the paths relative from the sourcefolder