Example #1
0
    def __init__(self, console, _locals, *args, **kwargs):
        preProperties = System.getProperties()
        postProperties = Properties()

        console.log.debug('initializing interpreter with postProperties: %r',
                          postProperties)

        console.log.debug('Initializing interpreter with preProperties: %r',
                          preProperties)

        InteractiveInterpreter.initialize(preProperties, postProperties, args)

        InteractiveInterpreter.__init__(self, _locals)
        self.setOut(StdOutRedirector(self))
        self.setErr(StdErrRedirector(self))
        self.console = console
    def __init__(self, console, _locals, *args, **kwargs):
        preProperties = System.getProperties()
        postProperties = Properties()

        console.callbacks.getStdout().write('Initializing interpreter with postProperties: %r\n' % (
            postProperties, ))

        console.callbacks.getStdout().write('Initializing interpreter with preProperties: %r\n' % (
            postProperties, ))

        InteractiveInterpreter.initialize(preProperties, postProperties, args)

        InteractiveInterpreter.__init__(self, _locals)
        self.setOut(StdOutRedirector(self))
        self.setErr(StdErrRedirector(self))
        self.console = console
Example #3
0
    def __init__(self, console, _locals, *args, **kwargs):
        preProperties = System.getProperties()
        postProperties = Properties()

        console.callbacks.getStdout().write(
            'Initializing interpreter with postProperties: %r\n' %
            (postProperties, ))

        console.callbacks.getStdout().write(
            'Initializing interpreter with preProperties: %r\n' %
            (postProperties, ))

        InteractiveInterpreter.initialize(preProperties, postProperties, args)

        InteractiveInterpreter.__init__(self, _locals)
        self.setOut(StdOutRedirector(self))
        self.setErr(StdErrRedirector(self))
        self.console = console
Example #4
0
 def __init__(self, console, _locals):
     InteractiveInterpreter.__init__(self, _locals)
     self.setOut(StdOutRedirector(self))
     self.setErr(StdErrRedirector(self))
     self.console = console
Example #5
0
 def __init__(self, console, _locals):
     InteractiveInterpreter.__init__(self, _locals)
     self.setOut(StdOutRedirector(self))
     self.setErr(StdErrRedirector(self))
     self.console = console