mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
use Windows slashes on Windows
Contributes to CURA-10951
This commit is contained in:
parent
c30c403a65
commit
c62e392c81
1 changed files with 3 additions and 1 deletions
|
@ -222,7 +222,9 @@ class CuraConan(ConanFile):
|
|||
if "package" in binary: # get the paths from conan package
|
||||
src_path = os.path.join(self.deps_cpp_info[binary["package"]].rootpath, binary["src"])
|
||||
elif "root" in binary: # get the paths relative from the sourcefolder
|
||||
src_path = os.path.join(self.source_folder, binary["root"], binary["src"])
|
||||
src_path = str(self.source_path.joinpath(binary["root"], binary["src"]).as_posix())
|
||||
if self.settings.os == "Windows":
|
||||
src_path = src_path.replace("\\", "\\\\")
|
||||
else:
|
||||
continue
|
||||
if not Path(src_path).exists():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue