diff options
author | Tom Rondeau | 2013-01-15 13:02:23 -0500 |
---|---|---|
committer | Tom Rondeau | 2013-01-15 13:02:23 -0500 |
commit | 6af94e62e294f9c74f11f529bd6fc6999527d24c (patch) | |
tree | ce225320dcde635d2ffd7465c11dfafdd09a5528 /grc/scripts | |
parent | d497483adfbac25308a612e6aeb23c1bfef3b184 (diff) | |
parent | cf2a4f174bb49a6c9e839217369b1e22741a10da (diff) | |
download | gnuradio-6af94e62e294f9c74f11f529bd6fc6999527d24c.tar.gz gnuradio-6af94e62e294f9c74f11f529bd6fc6999527d24c.tar.bz2 gnuradio-6af94e62e294f9c74f11f529bd6fc6999527d24c.zip |
Merge remote-tracking branch 'mbant/fix485'
Diffstat (limited to 'grc/scripts')
-rwxr-xr-x | grc/scripts/gnuradio-companion | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/grc/scripts/gnuradio-companion b/grc/scripts/gnuradio-companion index e76322b4d..dabca3028 100755 --- a/grc/scripts/gnuradio-companion +++ b/grc/scripts/gnuradio-companion @@ -39,10 +39,19 @@ Is the library path environment variable set correctly? d.run() exit(-1) -from gnuradio import gr from optparse import OptionParser +import os if __name__ == "__main__": + if ('GR_DONT_LOAD_PREFS' in os.environ.keys() and + (not 'GRC_BLOCKS_PATH' in os.environ.keys() or len(os.environ['GRC_BLOCKS_PATH']) == 0)): + d = gtk.MessageDialog( + type=gtk.MESSAGE_ERROR, + buttons=gtk.BUTTONS_CLOSE, + message_format="""Can't find block definitions. Use config.conf or GRC_BLOCKS_PATH. """) + d.set_title("No block definitions available.") + d.run() + exit(-1) usage = 'usage: %prog [options] [saved flow graphs]' version = """ GNU Radio Companion %s |