tweetcast/server-gevent/tweetcast.py
changeset 425 b346fd32fc34
parent 405 6626b728b142
child 438 892c3d9f635c
--- a/tweetcast/server-gevent/tweetcast.py	Fri Dec 16 20:10:31 2011 +0100
+++ b/tweetcast/server-gevent/tweetcast.py	Mon Dec 19 00:30:04 2011 +0100
@@ -135,4 +135,6 @@
 		return ['<h1>Not Found</h1>']
 
 session = Session()
-WSGIServer(('', WEB_PORT), webserver).serve_forever()
\ No newline at end of file
+
+if __name__ == "__main__":
+    WSGIServer(('', WEB_PORT), webserver).serve_forever()
\ No newline at end of file