def do_start(self, arg):
        """Starts an ActorSystem.  The first optional argument is the
           SystemBase.  The remainder of the line (if any) is parsed
           as the capabilities dictionary to pass to the
           ActorSystem.
        """
        if self.system:
            print ('Shutting down previous ActorSystem')
            self.system.shutdown()
            del self.system
            self.system = None
        if arg:
            base = arg.split()[0]
            capspec = ' '.join(arg.split()[1:])
            caps = eval(capspec) if capspec else {}
            print ('Starting %s ActorSystem\nCapabilities: %s'%(base, str(caps)))
            try:
                self.system = ActorSystem(base, caps)
                print ('Started %s ActorSystem'%base)
            except __HOLE__:
                print ('***ERROR starting ActorSystem with specified Base: %s'%base)
                import traceback
                traceback.print_exc()
            except ActorSystemException as ex:
                print ('***ERROR from Actor System: %s'%str(ex))
        else:
            self.system = ActorSystem()
            print ('Started default ActorSystem')
dataset/ETHPy150Open godaddy/Thespian/thespian/shell.py/ThespianShell.do_start