Skip to content

Commit

Permalink
Fix file output
Browse files Browse the repository at this point in the history
Signed-off-by: ruffsl <[email protected]>
  • Loading branch information
ruffsl committed Aug 7, 2019
1 parent 1854b7e commit 297b049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sros2/scripts/dds_sql_to_sros2_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def main(argv=sys.argv[1:]):
sros2_policy = dds_policy_to_sros2_policy(dds_policy)

if args.output_policy is not None:
with open(args.policy_file, 'wb') as f:
with open(args.output_policy, 'wb') as f:
f.write(etree.tostring(sros2_policy, pretty_print=True))
else:
print(etree.tostring(sros2_policy, pretty_print=True).decode())
Expand Down

0 comments on commit 297b049

Please sign in to comment.