From 7ef6a1c44eba65a98f833614cc48c7b30836dd17 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Tue, 25 Jun 2013 12:45:24 -0400 Subject: [PATCH] clean backend finding --- moto/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moto/server.py b/moto/server.py index 70f5b03db..a46222488 100644 --- a/moto/server.py +++ b/moto/server.py @@ -24,7 +24,8 @@ class RegexConverter(BaseConverter): def configure_urls(service): - backend = globals()["{}_backend".format(service)] + module = sys.modules[__name__] + backend = getattr(module, "{}_backend".format(service)) from werkzeug.routing import Map # Reset view functions to reset the app app.view_functions = {}