mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 08:28:59 +08:00
use Windows slashes on Windows
Contributes to CURA-10951
This commit is contained in:
parent
c30c403a65
commit
c62e392c81
@ -222,7 +222,9 @@ class CuraConan(ConanFile):
|
|||||||
if "package" in binary: # get the paths from conan package
|
if "package" in binary: # get the paths from conan package
|
||||||
src_path = os.path.join(self.deps_cpp_info[binary["package"]].rootpath, binary["src"])
|
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
|
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:
|
else:
|
||||||
continue
|
continue
|
||||||
if not Path(src_path).exists():
|
if not Path(src_path).exists():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user