From 0dc8f5f3c8d64c8ff6cc0ddcd3374d11776977d4 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Mon, 10 Dec 2012 13:28:43 -0500 Subject: core: to make ctest able to import pmts in-tree. This duplicates a recent change made on next for the same reason: 4aec85d2facecb751ab4f83b934e56a6d59037dd --- gnuradio-core/src/python/gnuradio/gr/hier_block2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gnuradio-core') diff --git a/gnuradio-core/src/python/gnuradio/gr/hier_block2.py b/gnuradio-core/src/python/gnuradio/gr/hier_block2.py index f5f0c00f5..b95782238 100644 --- a/gnuradio-core/src/python/gnuradio/gr/hier_block2.py +++ b/gnuradio-core/src/python/gnuradio/gr/hier_block2.py @@ -20,7 +20,10 @@ # from gnuradio_core import hier_block2_swig -from gruel import pmt +try: + import pmt +except ImportError: + from gruel import pmt # # This hack forces a 'has-a' relationship to look like an 'is-a' one. -- cgit