diff options
author | manojgudi | 2013-12-24 21:07:36 +0530 |
---|---|---|
committer | manojgudi | 2013-12-24 21:07:36 +0530 |
commit | 576936961996253c5a7ea27b63e5bb2ce0bb01aa (patch) | |
tree | b7b92b6025a04317ff7972e3a087b278468209a8 /gr-sbhs/python/__init__.py | |
parent | da744ab20441967db5bc7885fcd5224f7fd75100 (diff) | |
download | gnuradio-576936961996253c5a7ea27b63e5bb2ce0bb01aa.tar.gz gnuradio-576936961996253c5a7ea27b63e5bb2ce0bb01aa.tar.bz2 gnuradio-576936961996253c5a7ea27b63e5bb2ce0bb01aa.zip |
Aded SBHS block
Diffstat (limited to 'gr-sbhs/python/__init__.py')
-rw-r--r-- | gr-sbhs/python/__init__.py | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/gr-sbhs/python/__init__.py b/gr-sbhs/python/__init__.py new file mode 100644 index 000000000..7b719281c --- /dev/null +++ b/gr-sbhs/python/__init__.py @@ -0,0 +1,54 @@ +# +# Copyright 2008,2009 Free Software Foundation, Inc. +# +# This application 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. +# +# This application 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 this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# + +# The presence of this file turns this directory into a Python package + +''' +This is the GNU Radio SCIMOD module. Place your Python package +description here (python/__init__.py). +''' + +# ---------------------------------------------------------------- +# Temporary workaround for ticket:181 (swig+python problem) +import sys +_RTLD_GLOBAL = 0 +try: + from dl import RTLD_GLOBAL as _RTLD_GLOBAL +except ImportError: + try: + from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL + except ImportError: + pass + +if _RTLD_GLOBAL != 0: + _dlopenflags = sys.getdlopenflags() + sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL) +# ---------------------------------------------------------------- + +# import any pure python here +# Dummy File for future use + +from scan_machines import * +print "Scanning Machines" +scan_machines() + +# ---------------------------------------------------------------- +# Tail of workaround +if _RTLD_GLOBAL != 0: + sys.setdlopenflags(_dlopenflags) # Restore original flags +# ---------------------------------------------------------------- |