Added a run options to the "no gui" generate options.
[debian/gnuradio] / grc / python / flow_graph.tmpl
index dce4037d58a4a9cde77cf99ca7bd10120f81b279..31d99a61c2dde5096e55b120c4f63c720956578a 100644 (file)
@@ -233,9 +233,14 @@ if __name__ == '__main__':
        #if $generate_options == 'wx_gui'
        tb.Run($flow_graph.get_option('run'))
        #elif $generate_options == 'no_gui'
+               #set $run_options = $flow_graph.get_option('run_options')
+               #if $run_options == 'prompt'
        tb.start()
        raw_input('Press Enter to quit: ')
        tb.stop()
+               #elif $run_options == 'run'
+       tb.run()
+               #end if
        #end if
 #end if