summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/utils/gr_plot_float.py
diff options
context:
space:
mode:
authortrondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>2008-01-30 22:28:15 +0000
committertrondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>2008-01-30 22:28:15 +0000
commitc2c1ba21350d588adb4ec8f2f815f50df81927f8 (patch)
treedf7b85f974521ef7df68f7d33e4c6eecd9835039 /gnuradio-core/src/utils/gr_plot_float.py
parentf52a5932f178e474b625e86fb85c1c8954334398 (diff)
Catching ImportError exception and giving (hopefully) useful error message to install the necessary packages.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7529 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/utils/gr_plot_float.py')
-rwxr-xr-xgnuradio-core/src/utils/gr_plot_float.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnuradio-core/src/utils/gr_plot_float.py b/gnuradio-core/src/utils/gr_plot_float.py
index d49a00594f..248a84b85a 100755
--- a/gnuradio-core/src/utils/gr_plot_float.py
+++ b/gnuradio-core/src/utils/gr_plot_float.py
@@ -20,7 +20,12 @@
# Boston, MA 02110-1301, USA.
#
-import scipy
+try:
+ import scipy
+except ImportError:
+ print "Please install SciPy to run this script (http://www.scipy.org/)"
+ raise SystemExit, 1
+
from optparse import OptionParser
from gr_plot_data import plot_data