Skip to content

Commit 2dc8148

Browse files
committed
Setup proper Main.eval and Main.include
1 parent 8680dbe commit 2dc8148

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

julia/core.py

+4
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,10 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
657657
self.sprint = self.eval('sprint')
658658
self.showerror = self.eval('showerror')
659659

660+
if self.eval('VERSION >= v"0.7-"'):
661+
self.eval("@eval Main import Base.MainInclude: eval, include")
662+
# https://github.com/JuliaLang/julia/issues/28825
663+
660664
def _debug(self, *msg):
661665
"""
662666
Print some debugging stuff, if enabled

0 commit comments

Comments
 (0)