From 8ad458cd725c7e66f1a69b283d4152d6edb1cd93 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Fri, 26 Jul 2013 15:03:16 -0400 Subject: [PATCH] Fix sys.argv bug --- moto/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/server.py b/moto/server.py index d49f6b157..645ce8fe4 100644 --- a/moto/server.py +++ b/moto/server.py @@ -37,7 +37,7 @@ def configure_urls(service): app.route(url_path, methods=HTTP_METHODS)(convert_flask_to_httpretty_response(handler)) -def main(argv=sys.argv): +def main(argv=sys.argv[1:]): # Yes, I'm using those imports in the beginning of the file to create a # dynamic list of available services to be shown in the help text when the # user tries to interact with moto_server.