We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9075654 + a7d88f5 commit 4526f53Copy full SHA for 4526f53
javabridge/jutil.py
@@ -149,6 +149,11 @@ def _find_jvm():
149
#
150
os.environ["PATH"] = os.environ["PATH"] + os.pathsep + _find_jvm() + \
151
os.pathsep + os.path.join(find_javahome(), "bin")
152
+ try:
153
+ os.add_dll_directory(_find_jvm())
154
+ os.add_dll_directory(os.path.join(find_javahome(), "bin"))
155
+ except AttributeError:
156
+ logger.debug("DLL directories not added to environment, may cause problems in Python 3.8+")
157
158
elif sys.platform == "darwin":
159
# Has side-effect of preloading dylibs
0 commit comments