#!/usr/bin/env python3
import http.server, socketserver, os, sys
os.chdir(os.path.dirname(os.path.abspath(__file__)))
port = int(sys.argv[1]) if len(sys.argv) > 1 else 8080
socketserver.TCPServer.allow_reuse_address = True
with socketserver.TCPServer(("", port), http.server.SimpleHTTPRequestHandler) as h:
    print("serving on http://localhost:%d/poc.html" % port)
    h.serve_forever()
