We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba62322 commit 2fb48f1Copy full SHA for 2fb48f1
sdf/embedSdf.py
@@ -1,5 +1,5 @@
1
#!/usr/bin/env python3
2
-from pathlib import Path
+from pathlib import Path, PurePosixPath
3
4
""""Script for generating a C++ file that contains the content from all SDF files"""
5
@@ -94,7 +94,9 @@ def get_map_content(arg_pathlist: Path) -> str:
94
map_str = ''
95
files = []
96
for path in pathlist:
97
- files.append(str(path))
+ # dir separator is hardcoded to '/' in C++ mapping
98
+ posix_path = PurePosixPath(path)
99
+ files.append(str(posix_path))
100
# get ascending order
101
files.sort()
102
for file in files:
0 commit comments