瀏覽代碼

Fast server boot

master
Pete Shadbolt 8 年之前
父節點
當前提交
2596c65a33
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      abp/server.py

+ 1
- 2
abp/server.py 查看文件

@@ -1,7 +1,7 @@
from websocket_server import WebsocketServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
from BaseHTTPServer import HTTPServer
import os, sys, threading, time
import os, sys, threading
import webbrowser

clients = []
@@ -28,7 +28,6 @@ if __name__ == '__main__':
thread = threading.Thread(target = httpserver.serve_forever)
thread.daemon = True
thread.start()
time.sleep(2)
webbrowser.open("http://localhost:5001/")

# Start the websocket server


Loading…
取消
儲存