Guide and scripts to locally build the FSFE website or single files of it
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.

pywebserver-fsfe.py 280B

123456789101112131415
  1. #!/usr/bin/env python3
  2. import http.server
  3. import socketserver
  4. import os
  5. import sys
  6. WEB_DIR = sys.argv[1]
  7. WEB_PORT = int(sys.argv[2])
  8. os.chdir(WEB_DIR)
  9. Handler = http.server.SimpleHTTPRequestHandler
  10. httpd = socketserver.TCPServer(("", WEB_PORT), Handler)
  11. httpd.serve_forever()