From: jcorgan Date: Mon, 24 Mar 2008 15:52:50 +0000 (+0000) Subject: Tweak ticket:181 fix for Win32 (Don Ward) X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8d51a86a61448f746a3193f710b0beb7a0143f96;p=debian%2Fgnuradio Tweak ticket:181 fix for Win32 (Don Ward) git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8096 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gnuradio-core/src/python/gnuradio/gr/__init__.py b/gnuradio-core/src/python/gnuradio/gr/__init__.py index 15ff17d7..24932815 100644 --- a/gnuradio-core/src/python/gnuradio/gr/__init__.py +++ b/gnuradio-core/src/python/gnuradio/gr/__init__.py @@ -36,15 +36,17 @@ except ImportError: except ImportError: pass -_dlopenflags = sys.getdlopenflags() -sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL) +if _RTLD_GLOBAL != 0: + _dlopenflags = sys.getdlopenflags() + sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL) from gnuradio_swig_python import * from exceptions import * from hier_block2 import * from top_block import * -sys.setdlopenflags(_dlopenflags) # Restore original flags +if _RTLD_GLOBAL != 0: + sys.setdlopenflags(_dlopenflags) # Restore original flags # create a couple of aliases serial_to_parallel = stream_to_vector