diff options
author | Ben Reynwar <ben@reynwar.net> | 2013-03-08 20:05:52 -0700 |
---|---|---|
committer | Ben Reynwar <ben@reynwar.net> | 2013-03-08 20:05:52 -0700 |
commit | 86b12479d5179645e0d7b0367dbae2bf531bbca8 (patch) | |
tree | d295241405ed320fa7aab86b442848e856a963f1 /gr-trellis/python/trellis/__init__.py | |
parent | ae30f247616b6229fb304e30fecf3f82ae09dbf6 (diff) |
trellis: Enabling uninstalled python imports.
Diffstat (limited to 'gr-trellis/python/trellis/__init__.py')
-rw-r--r-- | gr-trellis/python/trellis/__init__.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gr-trellis/python/trellis/__init__.py b/gr-trellis/python/trellis/__init__.py new file mode 100644 index 0000000000..f2540e835f --- /dev/null +++ b/gr-trellis/python/trellis/__init__.py @@ -0,0 +1,33 @@ +# Copyright 2012 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. +# + +''' +Blocks and utilities for trellis coding and related. +''' + +# The presence of this file turns this directory into a Python package +import os + +try: + from trellis_swig import * +except ImportError: + dirname, filename = os.path.split(os.path.abspath(__file__)) + __path__.append(os.path.join(dirname, "..", "..", "swig")) + from trellis_swig import * |