blob: bf4b5becd7120afb22ba3e42abd38ba9b744e82c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import monkey
f = open('/tmp/index.html', 'w')
f.write("<html><body><h2>Hello Monkey</h2></body></html>")
f.close()
monkey.init(None, 0, 0, '/tmp/')
monkey.configure(indexfile='index.html')
monkey.start()
raw_input("Press enter to stop the server...")
monkey.stop()
|