diff options
author | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
commit | e76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch) | |
tree | 1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gnuradio-runtime/python/gnuradio/gr/__init__.py | |
parent | 98348e37209aa7daeb96fe5ead815e5b083dc6da (diff) | |
parent | 39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff) |
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG.
Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gr/__init__.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gr/__init__.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gr/__init__.py b/gnuradio-runtime/python/gnuradio/gr/__init__.py index a1c1d3f397..2217907222 100644 --- a/gnuradio-runtime/python/gnuradio/gr/__init__.py +++ b/gnuradio-runtime/python/gnuradio/gr/__init__.py @@ -16,19 +16,19 @@ from __future__ import absolute_import from __future__ import unicode_literals # This is the main GNU Radio python module. -# We pull the swig output and the other modules into the gnuradio.gr namespace +# We pull the pybind output and the other modules into the gnuradio.gr namespace -# If gnuradio is installed then the swig output will be in this directory. -# Otherwise it will reside in ../../../swig. +# If gnuradio is installed then the pybind output will be in this directory. +# Otherwise it will reside in bindings/. import os, sys try: - from .runtime_swig import * + from .gr_python import * except ImportError: dirname, filename = os.path.split(os.path.abspath(__file__)) - __path__.append(os.path.join(dirname, "..", "..", "..", "swig")) - from .runtime_swig import * + __path__.append(os.path.join(dirname, "bindings")) + from .gr_python import * from .exceptions import * from .top_block import * @@ -36,8 +36,8 @@ from .hier_block2 import * from .tag_utils import * from .gateway import basic_block, sync_block, decim_block, interp_block, py_io_signature -# Force the preference database to be initialized -prefs = prefs.singleton +# # Force the preference database to be initialized +# prefs = prefs.singleton log = gr.logger("log") log.set_level(prefs().get_string("LOG", "log_level", "notset")) |