gr-osmosdr/python/__init__.py

25 lines
607 B
Python
Raw Permalink Normal View History

2012-04-06 13:29:14 +00:00
#
# Copyright 2008,2009 Free Software Foundation, Inc.
#
# SPDX-License-Identifier: GPL-3.0-or-later
2012-04-06 13:29:14 +00:00
#
# The presence of this file turns this directory into a Python package
'''
This is the GNU Radio OSMOSDR module. Place your Python package
description here (python/__init__.py).
2012-04-06 13:29:14 +00:00
'''
import os
2012-04-06 13:29:14 +00:00
# import pybind11 generated symbols into the osmosdr namespace
try:
from .osmosdr_python import *
except ImportError:
dirname, filename = os.path.split(os.path.abspath(__file__))
__path__.append(os.path.join(dirname, "bindings"))
from .osmosdr_python import *
# import any pure python here
#