Fixed empty source

Contributes to CURA-9365
This commit is contained in:
j.spijker@ultimaker.com 2022-06-30 11:58:38 +02:00 committed by Jelle Spijker
parent 648c1e95db
commit d07c9d64cc

View file

@ -121,7 +121,7 @@ class CuraConan(ConanFile):
return py_interp
def _generate_cura_version(self, location):
with open(Path(self.source_folder, "CuraVersion.py.jinja"), "r") as f:
with open(Path(__file__).parent.joinpath("CuraVersion.py.jinja"), "r") as f:
cura_version_py = Template(f.read())
with open(Path(location, "CuraVersion.py"), "w") as f:
@ -168,7 +168,7 @@ class CuraConan(ConanFile):
for bin in src_path.glob(binary["binary"]):
binaries.append((str(bin), binary["dst"]))
with open(Path(Path(__file__).parent, "Ultimaker-Cura.spec.jinja"), "r") as f:
with open(Path(__file__).parent.joinpath("Ultimaker-Cura.spec.jinja"), "r") as f:
pyinstaller = Template(f.read())
with open(Path(location, "Ultimaker-Cura.spec"), "w") as f: