def _runscript(self, filename):
    import __main__
    __main__.__dict__.clear()
    __main__.__dict__.update({'__name__': '__main__', '__file__': filename, '__builtins__': __builtins__})
    self._wait_for_mainpyfile = 1
    self.mainpyfile = self.canonic(filename)
    statement = 'exec(compile(open("{}").read(), "{}", "exec"))'.format(filename, filename)
    from pudb import set_interrupt_handler
    set_interrupt_handler()
    self.run(statement)
def _runscript(self, filename):
    import __main__
    __main__.__dict__.clear()
    __main__.__dict__.update({'__name__': '__main__', '__file__': filename, '__builtins__': __builtins__})
    self._wait_for_mainpyfile = 1
    self.mainpyfile = self.canonic(filename)
    statement = 'exec(compile(open("{}").read(), "{}", "exec"))'.format(filename, filename)
    from pudb import set_interrupt_handler
    set_interrupt_handler()
    self.run(statement)