Skip to content

Commit

Permalink
Modifications to python generator lib to return generated files (#511)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Tyshka <atyshka@gmail.com>
  • Loading branch information
atyshka committed Aug 3, 2020
1 parent f66e937 commit 76c536e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rosidl_cmake/rosidl_cmake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def generate_files(
'Could not find template: ' + template_filename

latest_target_timestamp = get_newest_modification_time(args['target_dependencies'])
generated_files = []

for idl_tuple in args.get('idl_tuples', []):
idl_parts = idl_tuple.rsplit(':', 1)
Expand All @@ -75,6 +76,7 @@ def generate_files(
generated_file = os.path.join(
args['output_dir'], str(idl_rel_path.parent),
generated_filename % idl_stem)
generated_files.append(generated_file)
data = {
'package_name': args['package_name'],
'interface_path': idl_rel_path,
Expand All @@ -93,7 +95,7 @@ def generate_files(
str(locator.get_absolute_path()), file=sys.stderr)
raise(e)

return 0
return generated_files


template_prefix_path = []
Expand Down

0 comments on commit 76c536e

Please sign in to comment.