aboutsummaryrefslogtreecommitdiffstats
path: root/python/__init__.py
diff options
context:
space:
mode:
authorVasil Velichkov <vvvelichkov@gmail.com>2019-11-15 23:47:12 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2020-02-14 15:14:59 +0000
commitbad4a81360ee642c8402f708ea2552532dcadcb1 (patch)
tree9af4c9ccc9214caaf51f23a7d8947cf29f9ae7fe /python/__init__.py
parent25af8de38a5d1c3eb602fb873d1bd3bdd88308fe (diff)
Log import errors as currently GRC 3.8 suppress them
See gnuradio/grc/core/FlowGraph.py:194 Change-Id: Ie6213428c218720692a544c98dc32c16bd50cbe1
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py40
1 files changed, 22 insertions, 18 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 87a62d6..b68df4a 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -43,21 +43,25 @@ if "CMAKE_BINARY_DIR" in os.environ:
os.path.join(dirname, "transmitter"),
os.path.join(dirname, "trx")]
-# import swig generated symbols into the gsm namespace
-from .grgsm_swig import *
-
-# import any pure python here
-
-#from fcch_burst_tagger import fcch_burst_tagger
-#from sch_detector import sch_detector
-#from fcch_detector import fcch_detector
-from .clock_offset_corrector_tagged import clock_offset_corrector_tagged
-from .gsm_input import gsm_input
-from .gsm_bcch_ccch_demapper import gsm_bcch_ccch_demapper
-from .gsm_bcch_ccch_sdcch4_demapper import gsm_bcch_ccch_sdcch4_demapper
-from .gsm_sdcch8_demapper import gsm_sdcch8_demapper
-from .gsm_gmsk_mod import gsm_gmsk_mod
-from .fn_time import *
-from .txtime_bursts_tagger import *
-from .arfcn import *
-from .device import *
+try:
+ # import swig generated symbols into the gsm namespace
+ from .grgsm_swig import *
+
+ # import any pure python here
+
+ #from fcch_burst_tagger import fcch_burst_tagger
+ #from sch_detector import sch_detector
+ #from fcch_detector import fcch_detector
+ from .clock_offset_corrector_tagged import clock_offset_corrector_tagged
+ from .gsm_input import gsm_input
+ from .gsm_bcch_ccch_demapper import gsm_bcch_ccch_demapper
+ from .gsm_bcch_ccch_sdcch4_demapper import gsm_bcch_ccch_sdcch4_demapper
+ from .gsm_sdcch8_demapper import gsm_sdcch8_demapper
+ from .gsm_gmsk_mod import gsm_gmsk_mod
+ from .fn_time import *
+ from .txtime_bursts_tagger import *
+ from .arfcn import *
+ from .device import *
+except ImportError as e:
+ import traceback; traceback.print_exc()
+ raise