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.
1 parent 6437514 commit 0614809Copy full SHA for 0614809
pysrc/juliacall/__init__.py
@@ -3,6 +3,8 @@
3
4
__version__ = '0.9.20'
5
6
+import atexit
7
+
8
_newmodule = None
9
10
def newmodule(name):
@@ -199,6 +201,13 @@ def args_from_config():
199
201
None if sysimg is None else sysimg.encode('utf8'),
200
202
)
203
204
+ @atexit.register
205
+ def at_jl_exit():
206
+ jl_atexit_hook = lib.jl_atexit_hook
207
+ jl_atexit_hook.argtypes = [c.c_int]
208
+ jl_atexit_hook.restype = None
209
+ jl_atexit_hook(0)
210
211
# initialise PythonCall
212
jl_eval = lib.jl_eval_string
213
jl_eval.argtypes = [c.c_char_p]
0 commit comments