diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-11-06 18:36:47 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-11-06 18:36:47 -0500 |
commit | f86c6e0462f8208106d41e4be02b59c66ce50e5a (patch) | |
tree | b84d61d6631c3e90bcb081d0282a5460668e510c /gr-audio/examples/python/mono_tone.py | |
parent | fd110bdbbe8bc40781c34f33c70deec5b7931109 (diff) |
analog: removing gr-analog as a required dependency when not actually necessary.
Examples that use gr-analog test for it first.
Diffstat (limited to 'gr-audio/examples/python/mono_tone.py')
-rwxr-xr-x | gr-audio/examples/python/mono_tone.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gr-audio/examples/python/mono_tone.py b/gr-audio/examples/python/mono_tone.py index 376ed4fee6..ad73d62327 100755 --- a/gr-audio/examples/python/mono_tone.py +++ b/gr-audio/examples/python/mono_tone.py @@ -21,11 +21,16 @@ # from gnuradio import gr -from gnuradio import analog from gnuradio import audio from gnuradio.eng_option import eng_option from optparse import OptionParser +try: + from gnuradio import analog +except ImportError: + sys.stderr.write("Error: Program requires gr-analog.\n") + sys.exit(1) + #import os #print os.getpid() #raw_input('Attach gdb and press Enter: ') |