Skip to content

Commit 9b09f37

Browse files
authored
Fix path handling in rosidl_generator_rs on Windows (#228)
Paths on Windows can contain colons. With rsplit, the drive letter was grouped with the package name.
1 parent a635b0b commit 9b09f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rosidl_generator_rs/rosidl_generator_rs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def generate_rs(generator_arguments_file, typesupport_impls):
6464
(Path(args['output_dir']) / 'rust/src').mkdir(parents=True, exist_ok=True)
6565

6666
for dep_tuple in args.get('ros_interface_dependencies', []):
67-
dep_parts = dep_tuple.rsplit(':', 1)
67+
dep_parts = dep_tuple.split(':', 1)
6868
assert len(dep_parts) == 2
6969
if dep_parts[0] != package_name:
7070
dependency_packages.add(dep_parts[0])

0 commit comments

Comments
 (0)