Browse Source

Fixed empty source

Contributes to CURA-9365
j.spijker@ultimaker.com 2 years ago
parent
commit
d07c9d64cc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      conanfile.py

+ 2 - 2
conanfile.py

@@ -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: