aptitude install python-twisted-web
sanych@pss-work:~$ cat bin/httpd.py
#! /usr/bin/python from os import getcwd from twisted.internet import reactor from twisted.web2 import server, static, channel, http PORT = 8080 DIRECTORY = getcwd() s = server.Site(static.File(DIRECTORY)) reactor.listenTCP(PORT, channel.HTTPFactory(s)) reactor.run()
import SimpleHTTPServer
SimpleHTTPServer.test()