X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dakweb%2Fdakwebserver.py;h=e6f71810e73f4d0f4c1ccabc7dbbc7cc16b01788;hb=3f25f563f874b30908bbea8005efc63c295b2458;hp=181a2e7447af2b86cbcab76120ec8809501b5806;hpb=7db3402aa3615137ec7eb58bd3ba7ac662381d0f;p=dak.git diff --git a/dakweb/dakwebserver.py b/dakweb/dakwebserver.py index 181a2e74..e6f71810 100755 --- a/dakweb/dakwebserver.py +++ b/dakweb/dakwebserver.py @@ -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()