mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
bootstrap and working python server i think
This commit is contained in:
11
Python/Main.py
Normal file
11
Python/Main.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user