diff options
Diffstat (limited to 'gr-utils/modtool/templates/gr-newmod/python/__init__.py')
-rw-r--r-- | gr-utils/modtool/templates/gr-newmod/python/__init__.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-utils/modtool/templates/gr-newmod/python/__init__.py b/gr-utils/modtool/templates/gr-newmod/python/__init__.py index 2a48948088..47bb0b7d60 100644 --- a/gr-utils/modtool/templates/gr-newmod/python/__init__.py +++ b/gr-utils/modtool/templates/gr-newmod/python/__init__.py @@ -11,13 +11,15 @@ This is the GNU Radio HOWTO module. Place your Python package description here (python/__init__.py). ''' from __future__ import unicode_literals +import os -# import swig generated symbols into the howto namespace +# import pybind11 generated symbols into the howto namespace try: - # this might fail if the module is python-only - from .howto_swig import * + from .howto_python import * except ImportError: - pass + dirname, filename = os.path.split(os.path.abspath(__file__)) + __path__.append(os.path.join(dirname, "bindings")) + from .howto_python import * # import any pure python here # |