Make it work with the export_sources method

Contributes to CURA-10317
This commit is contained in:
Jelle Spijker 2023-03-27 11:54:10 +02:00
parent 1f4956de1b
commit d2644df7b6
No known key found for this signature in database
GPG key ID: 034D1C0527888B65

View file

@ -218,7 +218,7 @@ class CuraConan(ConanFile):
# Collect all dll's from PyQt6 and place them in the root
binaries.extend([(f"{p}", ".") for p in Path(self._site_packages, "PyQt6", "Qt6").glob("**/*.dll")])
with open(os.path.join(self.recipe_folder, "UltiMaker-Cura.spec.jinja"), "r") as f:
with open(os.path.join(self.source_folder, "UltiMaker-Cura.spec.jinja"), "r") as f:
pyinstaller = Template(f.read())
version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)