diff --git a/conanfile.py b/conanfile.py index 38dfe34fe0..8654243698 100644 --- a/conanfile.py +++ b/conanfile.py @@ -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