Reflect parameters of code.InteractiveConsele in HyREPL in order to make hy run inside Blender.

This commit is contained in:
Kenan Bölükbaşı 2013-12-29 00:25:55 +02:00
parent f6887ed7c2
commit 3f590f8916

View File

@ -73,9 +73,10 @@ def print_python_code(_ast):
class HyREPL(code.InteractiveConsole):
def __init__(self, spy=False):
def __init__(self, spy=False, locals=None, filename="<input>"):
self.spy = spy
code.InteractiveConsole.__init__(self)
code.InteractiveConsole.__init__(self, locals=locals,
filename=filename)
def runsource(self, source, filename='<input>', symbol='single'):
try: