Changeset 7512

Show
Ignore:
Timestamp:
01/25/08 08:11:37
Author:
jcorgan
Message:

Applied changeset r7461 on trunk to release branch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/branches/releases/3.1/gnuradio-core/src/python/gnuradio/gr/__init__.py

    r6187 r7512  
    2525# We pull the swig output and the other modules into the gnuradio.gr namespace 
    2626 
     27# Temporary workaround for ticket:181. 
     28# Use leading underscores to avoid namespace pollution 
     29import sys 
     30_RTLD_GLOBAL = 0 
     31try: 
     32    from dl import RTLD_GLOBAL as _RTLD_GLOBAL 
     33except ImportError: 
     34    try: 
     35        from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL 
     36    except ImportError: 
     37        pass 
     38     
     39_dlopenflags = sys.getdlopenflags() 
     40sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL) 
     41 
    2742from gnuradio_swig_python import * 
    2843from basic_flow_graph import * 
     
    3348from top_block import * 
    3449 
     50sys.setdlopenflags(_dlopenflags)             # Restore original flags 
     51 
    3552# create a couple of aliases 
    3653serial_to_parallel = stream_to_vector