diff options
author | Matthew Newhook <matthew@zeroc.com> | 2006-06-14 14:04:25 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2006-06-14 14:04:25 +0000 |
commit | 07328b47fb5befb3ed93c6ac5c3c6b054cdec687 (patch) | |
tree | c211762411a2b42119ac31805eeaf70c28f5f3ed /py/python/Ice.py | |
parent | Fixed bug 1038 (diff) | |
download | ice-07328b47fb5befb3ed93c6ac5c3c6b054cdec687.tar.bz2 ice-07328b47fb5befb3ed93c6ac5c3c6b054cdec687.tar.xz ice-07328b47fb5befb3ed93c6ac5c3c6b054cdec687.zip |
added support for --compress, --host, --threadPerConnection, --protocol.
Fixed a MacOS specific bug. Changed faultTolerance test to use os._exit
instead of sys.exit. The binding test now supresses connection
warnings.
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. |