diff options
Diffstat (limited to 'grc/scripts/grc')
-rwxr-xr-x | grc/scripts/grc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/grc/scripts/grc b/grc/scripts/grc index e74d98616..70c7ad1ad 100755 --- a/grc/scripts/grc +++ b/grc/scripts/grc @@ -22,6 +22,14 @@ import pygtk pygtk.require('2.0') import gtk +try: import gnuradio +except ImportError, e: + d = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_CLOSE, message_format=""" +Cannot find module gnuradio. Is your PYTHONPATH set correctly?""") + d.set_title(e.message) + d.run() + exit(-1) + from gnuradio.grc.platforms.base.Constants import VERSION from optparse import OptionParser |