import os import sys import cherrypy import __init__ as httpdrop if __name__ == "__main__": args = sys.argv[:] args.pop(0) if args: path = args[0] else: path = os.getcwd() cherrypy.config.update({"environment": "production"}) cherrypy.tree.mount(httpdrop.HTTPDrop(path)) cherrypy.server.start() cherrypy.engine.start()