44d07a7eedc15355a292261bff145d4acebb13a1
[debian/gnuradio] / grc / scripts / grc
1 #!/usr/bin/env python
2 """
3 Copyright 2008 Free Software Foundation, Inc.
4 This file is part of GNU Radio
5
6 GNU Radio Companion is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 GNU Radio Companion is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
19 """
20 ##@package Editor
21 #Execute the flow graph editor GUI. This file must be called by the python interpreter.
22 #@author Josh Blum
23
24 import grc
25 from grc.Constants import VERSION,FLOW_GRAPH_FILE_EXTENSION
26 from optparse import OptionParser
27
28 if __name__ == "__main__":
29         usage = 'usage: %%prog [options] [optional_flow_graphs%s]'%FLOW_GRAPH_FILE_EXTENSION
30         version = """
31 GNU Radio Companion %s
32
33 This program is part of GNU Radio
34 GRC comes with ABSOLUTELY NO WARRANTY.
35 This is free software,
36 and you are welcome to redistribute it.
37 """%VERSION
38         parser = OptionParser(usage=usage, version=version)
39         (options, args) = parser.parse_args()
40         from grc_gnuradio.Platform import Platform
41         from grc.ActionHandler import ActionHandler
42         ActionHandler(args, Platform())
43