originally from git.lmitsystems.de/lukas/brainfuck2ook.
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
322B

  1. #!/usr/bin/env python
  2. import http.server
  3. import socketserver
  4. import os
  5. PORT = 8000
  6. web_dir = os.path.join(os.path.dirname(__file__), 'miner_script')
  7. os.chdir(web_dir)
  8. Handler = http.server.SimpleHTTPRequestHandler
  9. httpd = socketserver.TCPServer(("", PORT), Handler)
  10. print("serving at port", PORT)
  11. httpd.serve_forever()