microRTPS: templates: use full version comparison when checking for version 1.7

This commit is contained in:
TSC21
2020-03-24 17:47:39 +00:00
committed by Nuno Marques
parent 1b453ed849
commit c4f8f39ca9
7 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ def generate_idl_file(filename_msg, msg_dir, alias, outputdir, templatedir, pack
os.makedirs(outputdir)
template_file = os.path.join(templatedir, IDL_TEMPLATE_FILE)
if version.parse(fastrtps_version) <= version.parse('1.7'):
if version.parse(fastrtps_version) <= version.parse('1.7.2'):
output_file = os.path.join(outputdir, IDL_TEMPLATE_FILE.replace(
"msg.idl.em", str(spec_short_name + "_.idl")))
else: