]> git.donarmstrong.com Git - dak.git/blobdiff - dakweb/dakwebserver.py
First pass at a hacky mod_wsgi version
[dak.git] / dakweb / dakwebserver.py
index 9435e8ac263ed7515366317c61b9dcc0ceedc4a2..e6f71810e73f4d0f4c1ccabc7dbbc7cc16b01788 100755 (executable)
@@ -37,5 +37,6 @@ from queries.source import *
 # Set up our initial database connection
 d = DBConn()
 
-# Run the bottle
-bottle.run()
+# Run the bottle if we're called directly
+if __name__ == '__main__':
+    bottle.run()