Skip to content

Commit

Permalink
Call jl_sigatomic_begin at the end of init_julia block
Browse files Browse the repository at this point in the history
This is required for using `reenable_sigint` in `pyjlwrap_call`.

See: PyCall 574
  • Loading branch information
tkf committed Oct 25, 2018
1 parent 5fc02df commit 245ac4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions julia/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,8 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
end
""")

self.api.jl_sigatomic_begin()

# Currently, PyJulia assumes that `Main.PyCall` exsits. Thus, we need
# to import `PyCall` again here in case `init_julia=False` is passed:
self._call(u"using PyCall")
Expand Down

0 comments on commit 245ac4c

Please sign in to comment.