diff options
Diffstat (limited to 'python/__init__.py')
-rw-r--r-- | python/__init__.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/python/__init__.py b/python/__init__.py index 1cb090f..70c469d 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -22,4 +22,15 @@ This is the GNU Radio OsmoSDR module. ''' -from .osmosdr_swig import * +from __future__ import unicode_literals + +# import swig generated symbols into the osmosdr namespace +try: + # this might fail if the module is python-only + from .osmosdr_swig import * +except ImportError as ie: + print(ie) + pass + +# import any pure python here +# |