Skip to content

Commit

Permalink
Fixed stdout
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Aug 20, 2024
1 parent 83cca77 commit c20cea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rosidl_adapter/rosidl_adapter/resource/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def expand_template(template_name, data, output_file, encoding='utf-8'):
def evaluate_template(template_name, data):
global _interpreter
# create copy before manipulating
print('data', data)
data = dict(data)
data['TEMPLATE'] = _evaluate_template

Expand All @@ -57,7 +58,7 @@ def evaluate_template(template_name, data):
defaultStdout=output,
deleteOnError=True,
rawErrors=True,
useProxy=False)
useProxy=True)
_interpreter = em.Interpreter(
config=config,
dispatcher=False)
Expand Down
2 changes: 1 addition & 1 deletion rosidl_pycommon/rosidl_pycommon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def expand_template(
defaultStdout=output,
deleteOnError=True,
rawErrors=True,
useProxy=False)
useProxy=True)
interpreter = em.Interpreter(
config=config,
dispatcher=False)
Expand Down

0 comments on commit c20cea3

Please sign in to comment.