summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorjcorgan2008-03-24 15:52:50 +0000
committerjcorgan2008-03-24 15:52:50 +0000
commit8d51a86a61448f746a3193f710b0beb7a0143f96 (patch)
tree87fc6b45d86e1096707daf0bae3ddcb6b059bcc9 /gnuradio-core
parent7916dd86c41bdc9cf7362dbe8f20858b8b3f9a2f (diff)
downloadgnuradio-8d51a86a61448f746a3193f710b0beb7a0143f96.tar.gz
gnuradio-8d51a86a61448f746a3193f710b0beb7a0143f96.tar.bz2
gnuradio-8d51a86a61448f746a3193f710b0beb7a0143f96.zip
Tweak ticket:181 fix for Win32 (Don Ward)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8096 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/python/gnuradio/gr/__init__.py8
1 files changed, 5 insertions, 3 deletions
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