Skip to content
Snippets Groups Projects
Commit a546fd5a authored by unknown's avatar unknown
Browse files

dlopenflags in more os-independant way

parent ff18eb32
Branches
Tags
No related merge requests found
......@@ -15,7 +15,9 @@
# SWIG bug workaround: loading multiple SWIG modules brought unwrapped
# swig::stop_iteration exceptions
import ctypes, sys
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
import platform
if 'Linux' in platform.system():
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
import corpus2, wccl, maca
# TODO: get back to default dlopen policy?
......
......@@ -17,7 +17,9 @@ __doc__ = """The actual tagger implementation."""
# SWIG bug workaround: loading multiple SWIG modules brought unwrapped
# swig::stop_iteration exceptions
import ctypes, sys
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
import platform
if 'Linux' in platform.system():
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
import os, codecs
import ConfigParser
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment