summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/swig/py3compat.i
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/swig/py3compat.i')
-rw-r--r--gnuradio-runtime/swig/py3compat.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnuradio-runtime/swig/py3compat.i b/gnuradio-runtime/swig/py3compat.i
new file mode 100644
index 0000000000..6e726c294f
--- /dev/null
+++ b/gnuradio-runtime/swig/py3compat.i
@@ -0,0 +1,7 @@
+%begin %{
+#define SWIG_PYTHON_2_UNICODE
+%}
+
+%pythonbegin %{
+from __future__ import absolute_import
+%}