diff options
Diffstat (limited to 'volk/python/volk_modtool/volk_modtool')
-rwxr-xr-x | volk/python/volk_modtool/volk_modtool | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/volk/python/volk_modtool/volk_modtool b/volk/python/volk_modtool/volk_modtool index 74b71adde2..9f31b9ea54 100755 --- a/volk/python/volk_modtool/volk_modtool +++ b/volk/python/volk_modtool/volk_modtool @@ -1,24 +1,24 @@ #!/usr/bin/env python # # Copyright 2013 Free Software Foundation, Inc. -# +# # This file is part of GNU Radio -# +# # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. -# +# # GNU Radio is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with GNU Radio; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 51 Franklin Street, # Boston, MA 02110-1301, USA. -# +# from volk_modtool import volk_modtool, volk_modtool_config from optparse import OptionParser, OptionGroup @@ -47,7 +47,7 @@ if __name__ == '__main__': actions.add_option('-l', '--list', action='store_true', help='List all kernels in the base.') actions.add_option('-k', '--kernels', action='store_true', - help='List all kernels in the module.') + help='List all kernels in the module.') actions.add_option('-r', '--remote_list', action='store_true', help='List all available kernels in remote volk module. Requires: -b.') actions.add_option('-m', '--moo', action='store_true', @@ -57,7 +57,7 @@ if __name__ == '__main__': (options, args) = parser.parse_args(); if len(sys.argv) < 2: parser.print_help() - + elif options.moo: print " (__) " print " (oo) " @@ -65,18 +65,18 @@ if __name__ == '__main__': print " / | || " print " * /\---/\ " print " ~~ ~~ " - + else: my_cfg = volk_modtool_config(options.config_file); - + my_modtool = volk_modtool(my_cfg.get_map(my_cfg.config_name)); - + if options.install: my_modtool.make_module_skeleton(); my_modtool.write_default_cfg(my_cfg.cfg); - + if options.add_kernel: if not options.kernel_name: raise exceptions.IOError("This action requires the -n option."); @@ -96,7 +96,7 @@ if __name__ == '__main__': my_modtool.remove_kernel(name); if options.add_all_kernels: - + if options.base_path: base = options.base_path; else: @@ -115,7 +115,7 @@ if __name__ == '__main__': print i; if options.list: - kernelset = my_modtool.get_current_kernels(); + kernelset = my_modtool.get_current_kernels(); for i in kernelset: print i; |