10 lines
253 B
Python
10 lines
253 B
Python
import http.server
|
|
import socketserver
|
|
|
|
def run():
|
|
Handler = http.server.SimpleHTTPRequestHandler
|
|
try:
|
|
httpd = socketserver.TCPServer(("", 8040), Handler)
|
|
httpd.serve_forever()
|
|
except:
|
|
print('Server already running')
|