summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2013-06-25 14:40:16 -0700
committerJosh Blum2013-06-25 14:40:16 -0700
commita5f1f379466ea79dddea7e444a670d737434fdd3 (patch)
tree10c955b66a07fa61f3b667f7ed5fc85f5852d82d
parent40a9b45d699d102261b2cfabb666efe7569bdbd4 (diff)
downloadgnuradio-a5f1f379466ea79dddea7e444a670d737434fdd3.tar.gz
gnuradio-a5f1f379466ea79dddea7e444a670d737434fdd3.tar.bz2
gnuradio-a5f1f379466ea79dddea7e444a670d737434fdd3.zip
gras: fix from last nights swig fun
-rw-r--r--gnuradio-core/src/lib/swig/gnuradio.i7
-rw-r--r--gr-uhd/swig/uhd_swig.i2
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