piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 1 | # |
| 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 | ''' |
| 22 | This is the GNU Radio GSM module. Place your Python package |
| 23 | description here (python/__init__.py). |
| 24 | ''' |
| 25 | |
| 26 | # ---------------------------------------------------------------- |
| 27 | # Temporary workaround for ticket:181 (swig+python problem) |
| 28 | import sys |
| 29 | _RTLD_GLOBAL = 0 |
| 30 | try: |
| 31 | from dl import RTLD_GLOBAL as _RTLD_GLOBAL |
| 32 | except ImportError: |
| 33 | try: |
| 34 | from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL |
| 35 | except ImportError: |
| 36 | pass |
| 37 | |
| 38 | if _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 |
ptrkrysik | 3be74a7 | 2014-12-13 10:11:00 +0100 | [diff] [blame] | 45 | from grgsm_swig import * |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 46 | |
| 47 | # import any pure python here |
piotr | 6b78abc | 2014-07-08 23:29:13 +0200 | [diff] [blame] | 48 | |
Piotr Krysik | 8715da0 | 2016-01-06 22:21:09 +0100 | [diff] [blame] | 49 | from hier_block import hier_block |
piotr | 6b78abc | 2014-07-08 23:29:13 +0200 | [diff] [blame] | 50 | from fcch_burst_tagger import fcch_burst_tagger |
| 51 | from sch_detector import sch_detector |
| 52 | from fcch_detector import fcch_detector |
piotr | 1c8de50 | 2014-08-06 16:01:40 +0200 | [diff] [blame] | 53 | from clock_offset_corrector import clock_offset_corrector |
ptrkrysik | dac3b2a | 2014-11-06 14:47:33 +0100 | [diff] [blame] | 54 | from gsm_input import gsm_input |
rpp | a49a4d2 | 2015-10-01 10:44:34 +0200 | [diff] [blame] | 55 | from gsm_wideband_input import gsm_wideband_input |
Piotr Krysik | 773a194 | 2016-05-20 12:45:54 +0200 | [diff] [blame] | 56 | from gsm_bcch_ccch_demapper import gsm_bcch_ccch_demapper |
| 57 | from gsm_bcch_ccch_sdcch4_demapper import gsm_bcch_ccch_sdcch4_demapper |
| 58 | from gsm_sdcch8_demapper import gsm_sdcch8_demapper |
Piotr Krysik | 8715da0 | 2016-01-06 22:21:09 +0100 | [diff] [blame] | 59 | |
Roman Khassraf | 9144861 | 2015-08-21 11:14:51 +0200 | [diff] [blame] | 60 | import arfcn |
ptrkrysik | dac3b2a | 2014-11-06 14:47:33 +0100 | [diff] [blame] | 61 | |
piotr | dda2227 | 2014-08-04 11:31:54 +0200 | [diff] [blame] | 62 | |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 63 | # |
| 64 | |
| 65 | # ---------------------------------------------------------------- |
| 66 | # Tail of workaround |
| 67 | if _RTLD_GLOBAL != 0: |
| 68 | sys.setdlopenflags(_dlopenflags) # Restore original flags |
| 69 | # ---------------------------------------------------------------- |