blob: cf25d1c4f0cb59c26dd51ffd5a89c33ffa67dfbb [file] [log] [blame]
piotr437f5462014-02-04 17:57:25 +01001#
2# Copyright 2008,2009 Free Software Foundation, Inc.
3#
4# This application is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# This application is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License along
15# with this program; if not, write to the Free Software Foundation, Inc.,
16# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17#
18
19# The presence of this file turns this directory into a Python package
20
21'''
22This is the GNU Radio GSM module. Place your Python package
23description here (python/__init__.py).
24'''
25
26# ----------------------------------------------------------------
27# Temporary workaround for ticket:181 (swig+python problem)
28import sys
29_RTLD_GLOBAL = 0
30try:
31 from dl import RTLD_GLOBAL as _RTLD_GLOBAL
32except ImportError:
33 try:
34 from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
35 except ImportError:
36 pass
37
38if _RTLD_GLOBAL != 0:
39 _dlopenflags = sys.getdlopenflags()
40 sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL)
41# ----------------------------------------------------------------
42
43
44# import swig generated symbols into the gsm namespace
45from gsm_swig import *
46
47# import any pure python here
48from receiver_hier import receiver_hier
piotr6b78abc2014-07-08 23:29:13 +020049
50from fcch_burst_tagger import fcch_burst_tagger
51from sch_detector import sch_detector
52from fcch_detector import fcch_detector
piotrdda22272014-08-04 11:31:54 +020053
piotr437f5462014-02-04 17:57:25 +010054#
55
56# ----------------------------------------------------------------
57# Tail of workaround
58if _RTLD_GLOBAL != 0:
59 sys.setdlopenflags(_dlopenflags) # Restore original flags
60# ----------------------------------------------------------------