mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 16:49:02 +08:00
copy cura_appy.py during generation to Script/bin
This commit is contained in:
parent
adac0c52a2
commit
818a00d4b4
@ -310,7 +310,7 @@ class CuraConan(ConanFile):
|
||||
self.cpp.package.resdirs = ["resources", "plugins", "packaging", "pip_requirements"] # pip_requirements should be the last item in the list
|
||||
|
||||
def generate(self):
|
||||
copy(self, "cura_app.py", os.path.join(self.source_folder, "cura_app.py"), os.path.join(self.build_folder, self.build_folder, self.cpp_info.bindirs[0]))
|
||||
copy(self, "cura_app.py", os.path.join(self.source_folder, "cura_app.py"), str(self._script_dir))
|
||||
cura_run_envvars = self._cura_run_env.vars(self, scope = "run")
|
||||
ext = ".ps1" if self.settings.os == "Windows" else ".sh"
|
||||
cura_run_envvars.save_script(os.path.join(self.folders.generators, f"cura_run_environment{ext}"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user