Skip to content
Snippets Groups Projects
Commit 5c47d551 authored by Bartosz Broda's avatar Bartosz Broda
Browse files

setdlopenflags patch for windows

parent a29c45ba
Branches
No related merge requests found
...@@ -17,7 +17,8 @@ __doc__ = """The actual chunker implementation.""" ...@@ -17,7 +17,8 @@ __doc__ = """The actual chunker implementation."""
# SWIG bug workaround: loading multiple SWIG modules brought unwrapped # SWIG bug workaround: loading multiple SWIG modules brought unwrapped
# swig::stop_iteration exceptions # swig::stop_iteration exceptions
import ctypes, sys import ctypes, sys
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL) if 'setdlopenflags' in sys.__dict__:
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
import corpus2 import corpus2
# TODO: get back to default dlopen policy? # TODO: get back to default dlopen policy?
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
# SWIG bug workaround: loading multiple SWIG modules brought unwrapped # SWIG bug workaround: loading multiple SWIG modules brought unwrapped
# swig::stop_iteration exceptions # swig::stop_iteration exceptions
import ctypes, sys import ctypes, sys
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL) if 'setdlopenflags' in sys.__dict__:
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
import corpus2, wccl import corpus2, wccl
# TODO: get back to default dlopen policy? # TODO: get back to default dlopen policy?
......
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