compas-dev / compas_cloud

COMPAS Remote Procedure Calls using websockets
MIT License
6 stars 3 forks source link

Cloud with console doesn't work on Mac #15

Open tomvanmele opened 3 years ago

tomvanmele commented 3 years ago
        if self.background:
            print("Starting new cloud server in background at {}:{}".format(self.host, self.port))
            self._process = Popen(args, stdout=PIPE, stderr=PIPE, env=env)
        else:
            print("Starting new cloud server with prompt console at {}:{}".format(self.host, self.port))
            args[0] = compas._os.select_python('python')
            args = " ".join(args)
            os.system('start ' + args)

in the else part the call to os.system('start python ...') fails because start is not recognised as command...