Skip to content

Commit 8792cdb

Browse files
committed
[cppyy] Help Windows locate libcppyy.so
1 parent c9e1a33 commit 8792cdb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bindings/pyroot/cppyy/cppyy/python/cppyy/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
from . import _typemap
6767
from ._version import __version__
6868

69+
# Help Windows locate cppyy/libcppyy.so, which should be in the same location as the current file:
70+
if 'win32' in sys.platform:
71+
os.add_dll_directory(os.path.dirname(__file__))
72+
6973
# import separately instead of in the above try/except block for easier to
7074
# understand tracebacks
7175
if ispypy:

0 commit comments

Comments
 (0)