def quit(self): from Ui import UiServer proc = UiServer() res = proc.stopGshift_Windows() self.icon.die() time.sleep(0.1) sys.exit()
def main(self): global ui_server, file_server from File import FileServer from Ui import UiServer file_server = FileServer() ui_server = UiServer() from Crypt import CryptConnection CryptConnection.manager.removeCerts() gevent.joinall([gevent.spawn(ui_server.start), gevent.spawn(file_server.start)])
def main(): from File import FileServer from Ui import UiServer logging.info("Creating UiServer....") ui_server = UiServer() logging.info("Creating FileServer....") file_server = FileServer() logging.info("Starting servers....") gevent.joinall( [gevent.spawn(ui_server.start), gevent.spawn(file_server.start)])
def main(self): global ui_server, file_server from File import FileServer from Ui import UiServer logging.info("Creating FileServer....") file_server = FileServer() logging.info("Creating UiServer....") ui_server = UiServer() logging.info("Removing old SSL certs...") from Crypt import CryptConnection CryptConnection.manager.removeCerts() logging.info("Starting servers....") gevent.joinall([gevent.spawn(ui_server.start), gevent.spawn(file_server.start)])
def main(): logging.info("Version: %s, Python %s, Gevent: %s" % (config.version, sys.version, gevent.__version__)) global ui_server, file_server from File import FileServer from Ui import UiServer logging.info("Creating UiServer....") ui_server = UiServer() logging.info("Creating FileServer....") file_server = FileServer() logging.info("Starting servers....") gevent.joinall( [gevent.spawn(ui_server.start), gevent.spawn(file_server.start)])
def main(self): logging.info("Version: %s r%s, Python %s, Gevent: %s" % (config.version, config.rev, sys.version, gevent.__version__)) global ui_server, file_server from File import FileServer from Ui import UiServer logging.info("Creating FileServer....") file_server = FileServer() logging.info("Creating UiServer....") ui_server = UiServer() logging.info("Removing old SSL certs...") from Crypt import CryptConnection CryptConnection.manager.removeCerts() logging.info("Starting servers....") gevent.joinall([gevent.spawn(ui_server.start), gevent.spawn(file_server.start)])