@@ -43,7 +43,7 @@ def GetPackage(Dir):
4343 break
4444
4545
46- return found_package_path
46+ return found_package_path . replace ( " \\ " , "/" )
4747
4848
4949def GetPackageList (Dir ):
@@ -58,7 +58,7 @@ def GetPackageList(Dir):
5858 package_list .append (l )
5959 elif package_path != "COLCON_IGNORE" :
6060 package_list .append (package_path )
61-
61+
6262 return package_list
6363
6464
@@ -70,7 +70,7 @@ def GetInterfacePackages(packages_list):
7070 if element .text == "rosidl_interface_packages" :
7171 package_interface_list .append (package )
7272 return package_interface_list
73-
73+
7474
7575def GetPackageName (package_path ):
7676 xml_root = xml .etree .ElementTree .parse (package_path ).getroot ()
@@ -88,8 +88,8 @@ def GetInterfacePackageMsgs(package_path):
8888 for file in files :
8989 if file .endswith (".msg" ):
9090 full_path = os .path .join (root , file )
91- msg_list .append (full_path )
92-
91+ msg_list .append (full_path . replace ( " \\ " , "/" ) )
92+
9393 return msg_list
9494
9595def GetInterfacePackageSrvs (package_path ):
@@ -99,8 +99,8 @@ def GetInterfacePackageSrvs(package_path):
9999 for file in files :
100100 if file .endswith (".srv" ):
101101 full_path = os .path .join (root , file )
102- msg_list .append (full_path )
103-
102+ msg_list .append (full_path . replace ( " \\ " , "/" ) )
103+
104104 return msg_list
105105
106106
@@ -113,7 +113,7 @@ def ReadDefaultXMLs(Path):
113113 fd = open (full_path )
114114 print ("%s" % fd .read ())
115115 fd .close ()
116-
116+
117117
118118
119119def generate_XML (args ):
0 commit comments