Changeset 7512
- Timestamp:
- 01/25/08 08:11:37
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gnuradio/branches/releases/3.1/gnuradio-core/src/python/gnuradio/gr/__init__.py
r6187 r7512 25 25 # We pull the swig output and the other modules into the gnuradio.gr namespace 26 26 27 # Temporary workaround for ticket:181. 28 # Use leading underscores to avoid namespace pollution 29 import sys 30 _RTLD_GLOBAL = 0 31 try: 32 from dl import RTLD_GLOBAL as _RTLD_GLOBAL 33 except ImportError: 34 try: 35 from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL 36 except ImportError: 37 pass 38 39 _dlopenflags = sys.getdlopenflags() 40 sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL) 41 27 42 from gnuradio_swig_python import * 28 43 from basic_flow_graph import * … … 33 48 from top_block import * 34 49 50 sys.setdlopenflags(_dlopenflags) # Restore original flags 51 35 52 # create a couple of aliases 36 53 serial_to_parallel = stream_to_vector
