Reflect parameters of code.InteractiveConsele in HyREPL in order to make hy run inside Blender.
This commit is contained in:
parent
f6887ed7c2
commit
3f590f8916
@ -73,9 +73,10 @@ def print_python_code(_ast):
|
|||||||
|
|
||||||
|
|
||||||
class HyREPL(code.InteractiveConsole):
|
class HyREPL(code.InteractiveConsole):
|
||||||
def __init__(self, spy=False):
|
def __init__(self, spy=False, locals=None, filename="<input>"):
|
||||||
self.spy = spy
|
self.spy = spy
|
||||||
code.InteractiveConsole.__init__(self)
|
code.InteractiveConsole.__init__(self, locals=locals,
|
||||||
|
filename=filename)
|
||||||
|
|
||||||
def runsource(self, source, filename='<input>', symbol='single'):
|
def runsource(self, source, filename='<input>', symbol='single'):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user