bootstrap and working python server i think

This commit is contained in:
ori agranat
2019-03-01 14:32:27 +02:00
parent 14e6eae07b
commit d8b4469285
4 changed files with 50 additions and 0 deletions

11
Python/Main.py Normal file
View 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()