Skip to content

Commit 90aec01

Browse files
committed
Setup proper Main.eval and Main.include
1 parent e442022 commit 90aec01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

julia/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,10 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
686686
self.sprint = self.eval('sprint')
687687
self.showerror = self.eval('showerror')
688688

689+
if self.eval('VERSION >= v"0.7-"'):
690+
self.eval("@eval Main import Base.MainInclude: eval, include")
691+
# https://github.com/JuliaLang/julia/issues/28825
692+
689693
def _debug(self, *msg):
690694
"""
691695
Print some debugging stuff, if enabled

0 commit comments

Comments
 (0)