mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
11 lines
295 B
Python
11 lines
295 B
Python
import http.server, socketserver , os
|
|
|
|
def RunServer():
|
|
WebDir = os.path.join(os.path.dirname(__file__), '../Site')
|
|
os.chdir(WebDir)
|
|
Handler = http.server.SimpleHTTPRequestHandler
|
|
httpd = socketserver.TCPServer(("", 80), Handler)
|
|
httpd.serve_forever()
|
|
|
|
|
|
RunServer() |