Skip to content

Commit 1615610

Browse files
gnuilleGuillem Ramirez
and
Guillem Ramirez
authored
fix: Ensure julia lib is always loaded as global (#186)
* fix: Ensure julia lib is always loaded as global * fix: Specify named argument Co-authored-by: Guillem Ramirez <[email protected]>
1 parent 73ae305 commit 1615610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysrc/juliacall/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def path_option(name, default=None):
118118
try:
119119
# Open the library
120120
os.chdir(os.path.dirname(libpath))
121-
CONFIG['lib'] = lib = c.CDLL(libpath)
121+
CONFIG['lib'] = lib = c.CDLL(libpath, mode=c.RTLD_GLOBAL)
122122
lib.jl_init__threading.argtypes = []
123123
lib.jl_init__threading.restype = None
124124
lib.jl_init__threading()

0 commit comments

Comments
 (0)