diff options
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r-- | py/python/Ice.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py index d9ec5364914..f77fff00775 100644 --- a/py/python/Ice.py +++ b/py/python/Ice.py @@ -12,13 +12,17 @@ Ice module """ -import sys, exceptions, string, imp, os, threading, dl, warnings +import sys, exceptions, string, imp, os, threading, warnings -# -# This is necessary for proper operation of Ice plug-ins. -# Without it, RTTI problems can occur. -# -sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL) +try: + import dl + # + # This is necessary for proper operation of Ice plug-ins. + # Without it, RTTI problems can occur. + # + sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL) +except ImportError: + pass # # Import the Python extension. |