You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
280 B

#!/usr/bin/env python3
import http.server
import socketserver
import os
import sys
WEB_DIR = sys.argv[1]
WEB_PORT = int(sys.argv[2])
Handler = http.server.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer(("", WEB_PORT), Handler)