From 8d51a86a61448f746a3193f710b0beb7a0143f96 Mon Sep 17 00:00:00 2001 From: jcorgan Date: Mon, 24 Mar 2008 15:52:50 +0000 Subject: Tweak ticket:181 fix for Win32 (Don Ward) git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8096 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/python/gnuradio/gr/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gnuradio-core') diff --git a/gnuradio-core/src/python/gnuradio/gr/__init__.py b/gnuradio-core/src/python/gnuradio/gr/__init__.py index 15ff17d7e..249328156 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 -- cgit