]> git.donarmstrong.com Git - dak.git/blobdiff - dakweb/dakwebserver.py
First pass at a hacky mod_wsgi version
[dak.git] / dakweb / dakwebserver.py
index 181a2e7447af2b86cbcab76120ec8809501b5806..e6f71810e73f4d0f4c1ccabc7dbbc7cc16b01788 100755 (executable)
@@ -34,8 +34,9 @@ QueryRegister().register_path('/path_help', list_paths)
 # Import our other methods
 from queries.source import *
 
-print "Connecting"
 # Set up our initial database connection
 d = DBConn()
-#bottle.run(host='localhost', port=8765)
-bottle.run()
+
+# Run the bottle if we're called directly
+if __name__ == '__main__':
+    bottle.run()