blob: 557a8d608f21e7d51c70eddfe56c220bdfa4b0e9 [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:
Vasil Velichkov1789ae22019-08-13 20:32:05 +000034 from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
piotr437f5462014-02-04 17:57:25 +010035 except ImportError:
Vasil Velichkov1789ae22019-08-13 20:32:05 +000036 pass
piotr437f5462014-02-04 17:57:25 +010037
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
Vasil Velichkov46c90be2019-09-02 04:06:41 +030045from .grgsm_swig import *
piotr437f5462014-02-04 17:57:25 +010046
47# import any pure python here
piotr6b78abc2014-07-08 23:29:13 +020048
Piotr Krysikd0a136b2018-02-27 08:47:20 +010049#from fcch_burst_tagger import fcch_burst_tagger
50#from sch_detector import sch_detector
51#from fcch_detector import fcch_detector
Vasil Velichkov46c90be2019-09-02 04:06:41 +030052from .clock_offset_corrector_tagged import clock_offset_corrector_tagged
53from .gsm_input import gsm_input
54from .gsm_bcch_ccch_demapper import gsm_bcch_ccch_demapper
55from .gsm_bcch_ccch_sdcch4_demapper import gsm_bcch_ccch_sdcch4_demapper
56from .gsm_sdcch8_demapper import gsm_sdcch8_demapper
57from .gsm_gmsk_mod import gsm_gmsk_mod
58from .fn_time import *
59from .txtime_bursts_tagger import *
60from .arfcn import *
61from .device import *
ptrkrysikdac3b2a2014-11-06 14:47:33 +010062
piotrdda22272014-08-04 11:31:54 +020063
piotr437f5462014-02-04 17:57:25 +010064#
65
66# ----------------------------------------------------------------
67# Tail of workaround
68if _RTLD_GLOBAL != 0:
69 sys.setdlopenflags(_dlopenflags) # Restore original flags
70# ----------------------------------------------------------------