#!/usr/bin/env python3
import http.server, socketserver, os

os.chdir(os.path.dirname(os.path.abspath(__file__)))
socketserver.TCPServer.allow_reuse_address = True
with socketserver.TCPServer(("127.0.0.1", 8888),
                            http.server.SimpleHTTPRequestHandler) as httpd:
    print("serving on http://127.0.0.1:8888/")
    httpd.serve_forever()
