From 297b04965e2ee54cdc20c2000d9feda5a6c476a1 Mon Sep 17 00:00:00 2001 From: ruffsl Date: Tue, 6 Aug 2019 21:57:38 -0700 Subject: [PATCH] Fix file output Signed-off-by: ruffsl --- sros2/scripts/dds_sql_to_sros2_policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sros2/scripts/dds_sql_to_sros2_policy.py b/sros2/scripts/dds_sql_to_sros2_policy.py index 3e8ff992..324b62ab 100755 --- a/sros2/scripts/dds_sql_to_sros2_policy.py +++ b/sros2/scripts/dds_sql_to_sros2_policy.py @@ -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())