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

setdlopenflags patch for windows

parent a29c45ba
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ __doc__ = """The actual chunker implementation."""
# SWIG bug workaround: loading multiple SWIG modules brought unwrapped
# swig::stop_iteration exceptions
import ctypes, sys
if 'setdlopenflags' in sys.__dict__:
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
import corpus2
......
......@@ -15,6 +15,7 @@
# SWIG bug workaround: loading multiple SWIG modules brought unwrapped
# swig::stop_iteration exceptions
import ctypes, sys
if 'setdlopenflags' in sys.__dict__:
sys.setdlopenflags(sys.getdlopenflags() | ctypes.RTLD_GLOBAL)
import corpus2, wccl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment