diff --git a/conanfile.py b/conanfile.py index fc687ac7b0..5d919691d6 100644 --- a/conanfile.py +++ b/conanfile.py @@ -252,8 +252,9 @@ class CuraConan(ConanFile): self.copy("*.dylib", src = "@libdirs", dst = self._script_dir) def deploy(self): - # Copy CuraEngine.exe to bindirs of Virtual Python Environment - # TODO: Fix source such that it will get the curaengine relative from the executable (Python bindir in this case) + # Clean the install folder before hand + self._base_dir.unlink(missing_ok = True) + self.copy_deps("CuraEngine.exe", root_package = "curaengine", src = self.deps_cpp_info["curaengine"].bindirs[0], dst = self._base_dir, keep_path = False)