blob: 0a9e5443e3e2862e72370f0efb793d98599588f9 [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
ptrkrysik3be74a72014-12-13 10:11:00 +010045from grgsm_swig import *
piotr437f5462014-02-04 17:57:25 +010046
47# import any pure python here
piotr6b78abc2014-07-08 23:29:13 +020048
Piotr Krysik8715da02016-01-06 22:21:09 +010049from hier_block import hier_block
piotr6b78abc2014-07-08 23:29:13 +020050from fcch_burst_tagger import fcch_burst_tagger
51from sch_detector import sch_detector
52from fcch_detector import fcch_detector
Piotr Krysik09826732016-07-15 13:14:24 +020053from clock_offset_corrector_tagged import clock_offset_corrector_tagged
ptrkrysikdac3b2a2014-11-06 14:47:33 +010054from gsm_input import gsm_input
Piotr Krysik773a1942016-05-20 12:45:54 +020055from gsm_bcch_ccch_demapper import gsm_bcch_ccch_demapper
56from gsm_bcch_ccch_sdcch4_demapper import gsm_bcch_ccch_sdcch4_demapper
57from gsm_sdcch8_demapper import gsm_sdcch8_demapper
Piotr Krysik8715da02016-01-06 22:21:09 +010058
Roman Khassraf91448612015-08-21 11:14:51 +020059import arfcn
ptrkrysikdac3b2a2014-11-06 14:47:33 +010060
piotrdda22272014-08-04 11:31:54 +020061
piotr437f5462014-02-04 17:57:25 +010062#
63
64# ----------------------------------------------------------------
65# Tail of workaround
66if _RTLD_GLOBAL != 0:
67 sys.setdlopenflags(_dlopenflags) # Restore original flags
68# ----------------------------------------------------------------