1
0
Fork 0
mirror of https://github.com/Oreolek/undum.git synced 2024-05-05 02:28:15 +03:00
undum/test_webservers/serve.py

14 lines
326 B
Python
Executable file

#!/usr/bin/env python
import SimpleHTTPServer, BaseHTTPServer, os
os.chdir('../games')
try:
print "Server starting. Visit http://localhost:8000/ in your browser."
BaseHTTPServer.test(
SimpleHTTPServer.SimpleHTTPRequestHandler,
BaseHTTPServer.HTTPServer
)
except KeyboardInterrupt:
print