Skip to content

Commit b06b6e5

Browse files
committed
[REMOVE] Debug library paths on Windows.
1 parent 6419d94 commit b06b6e5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

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

69+
# Help Windows locate cppyy/libcppyy, which should be in the same location as the current file:
70+
if "win32" in sys.platform:
71+
cppyy_path = os.path.dirname(__file__)
72+
#result1 = os.add_dll_directory(cppyy_path)
73+
#result2 = os.add_dll_directory(os.path.dirname(cppyy_path))
74+
print("___***** Exec path:", os.get_exec_path())
75+
#print(result1, result2)
76+
for path in [cppyy_path, os.path.join(cppyy_path, 'cppyy'), os.path.dirname(cppyy_path), os.path.dirname(os.path.dirname(cppyy_path)), '.']:
77+
try:
78+
print("___****** Listing", path, os.listdir(path))
79+
except FileNotFoundError:
80+
print("___****** Not found:", path)
81+
6982
# import separately instead of in the above try/except block for easier to
7083
# understand tracebacks
7184
if ispypy:

0 commit comments

Comments
 (0)