summaryrefslogtreecommitdiff
path: root/grc/scripts
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2015-07-06 16:04:32 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2015-07-06 16:04:32 -0700
commit1185d401caf8f420b93754398675d012f08ef68f (patch)
tree3ec70421075ae3eed70248b595841e37e354ac90 /grc/scripts
parente1e4cc4c82cb8f87b438e225cfdfa5a80a0de6f9 (diff)
parent1b9c8ab458f92066dac7926bc0d85f2841f97d61 (diff)
Merge branch 'maint'
Diffstat (limited to 'grc/scripts')
-rwxr-xr-xgrc/scripts/gnuradio-companion8
1 files changed, 7 insertions, 1 deletions
diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion
index b8b960a91e..77345bed1a 100755
--- a/grc/scripts/gnuradio-companion
+++ b/grc/scripts/gnuradio-companion
@@ -21,11 +21,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
import os
import sys
import optparse
+import warnings
import pygtk
pygtk.require('2.0')
-import gtk
+warnings.filterwarnings("error")
+try:
+ import gtk
+except:
+ sys.exit("Failed to import gtk. If you are running over ssh, did you enable X forwarding and start ssh with -X?")
+warnings.filterwarnings("always")
GR_IMPORT_ERROR_MESSAGE = """\
Cannot import gnuradio.