diff options
Diffstat (limited to 'gr-utils/bindtool/scripts/bind_intree_file.py')
-rw-r--r-- | gr-utils/bindtool/scripts/bind_intree_file.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-utils/bindtool/scripts/bind_intree_file.py b/gr-utils/bindtool/scripts/bind_intree_file.py index 774f118402..026a702e00 100644 --- a/gr-utils/bindtool/scripts/bind_intree_file.py +++ b/gr-utils/bindtool/scripts/bind_intree_file.py @@ -14,7 +14,7 @@ parser.add_argument('--output_dir', default=tempfile.gettempdir(), help='Output directory of generated bindings') parser.add_argument('--prefix', help='Prefix of Installed GNU Radio') parser.add_argument('--src', help='Directory of gnuradio source tree', - default=os.path.dirname(os.path.abspath(__file__))+'/../../..') + default=os.path.dirname(os.path.abspath(__file__)) + '/../../..') parser.add_argument( '--filename', help="File to be parsed") @@ -41,7 +41,7 @@ name = args.module if name not in ['gr', 'pmt']: namespace = ['gr', name] - prefix_include_root = 'gnuradio/'+name # pmt, gnuradio/digital, etc. + prefix_include_root = 'gnuradio/' + name # pmt, gnuradio/digital, etc. else: namespace = [name] if name == 'gr': @@ -54,6 +54,7 @@ with warnings.catch_warnings(): bg = BindingGenerator(args.prefix, namespace, prefix_include_root, output_dir, addl_includes=','.join(args.include), catch_exceptions=False, write_json_output=False, status_output=args.status, - flag_automatic=True if args.flag_automatic.lower() in ['1','true'] else False, - flag_pygccxml=True if args.flag_pygccxml.lower() in ['1','true'] else False) + flag_automatic=True if args.flag_automatic.lower() in [ + '1', 'true'] else False, + flag_pygccxml=True if args.flag_pygccxml.lower() in ['1', 'true'] else False) bg.gen_file_binding(args.filename) |