diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2015-04-26 16:13:11 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-04-26 16:13:11 -0700 |
commit | 327f07093aa75ff08a2509f77e8cbf4a840d3eed (patch) | |
tree | 6315ab627a107dbabfaf2c1d3cb4e0a95d831f08 | |
parent | 10c710479a88cf8c6f4fe383541cab63e7139b08 (diff) | |
parent | 839b933dd40f876a3a85351462575bac46ffd441 (diff) |
Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg'
-rwxr-xr-x | grc/scripts/gnuradio-companion | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion index 7a407eaaf8..b8b960a91e 100755 --- a/grc/scripts/gnuradio-companion +++ b/grc/scripts/gnuradio-companion @@ -55,6 +55,14 @@ def show_gtk_error_dialog(title, message): d.run() +def check_gtk_init(): + try: + gtk.init_check() + except RuntimeError: + print 'GTK initialization failed - bailing' + exit(-1) + + def check_gnuradio_import(): try: from gnuradio import gr @@ -108,6 +116,7 @@ def main(): if __name__ == '__main__': + check_gtk_init() check_gnuradio_import() ensure_blocks_path() main() |