diff options
-rw-r--r-- | gnuradio-core/src/lib/swig/gnuradio.i | 7 | ||||
-rw-r--r-- | gr-uhd/swig/uhd_swig.i | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/swig/gnuradio.i b/gnuradio-core/src/lib/swig/gnuradio.i index 0f02554c9..6c89dd0cb 100644 --- a/gnuradio-core/src/lib/swig/gnuradio.i +++ b/gnuradio-core/src/lib/swig/gnuradio.i @@ -20,6 +20,13 @@ * Boston, MA 02110-1301, USA. */ +%pythoncode %{ +import gras +import os +import sys +sys.path.append(os.path.dirname(gras.__file__)) +%} + // Disable warning about base class types #pragma SWIG nowarn=401 diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i index 99258c0f5..342b8279b 100644 --- a/gr-uhd/swig/uhd_swig.i +++ b/gr-uhd/swig/uhd_swig.i @@ -20,6 +20,8 @@ * Boston, MA 02110-1301, USA. */ +%module uhd_swig + // Defined during configure; avoids trying to locate // header files if UHD was not installed. #ifdef GR_HAVE_UHD |