Skip to content

Commit

Permalink
Setup proper Main.eval and Main.include
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Sep 16, 2018
1 parent 8680dbe commit 2dc8148
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions julia/core.py
Expand Up @@ -657,6 +657,10 @@ def __init__(self, init_julia=True, jl_init_path=None, runtime=None,
self.sprint = self.eval('sprint')
self.showerror = self.eval('showerror')

if self.eval('VERSION >= v"0.7-"'):
self.eval("@eval Main import Base.MainInclude: eval, include")
# https://github.com/JuliaLang/julia/issues/28825

def _debug(self, *msg):
"""
Print some debugging stuff, if enabled
Expand Down

0 comments on commit 2dc8148

Please sign in to comment.