From 8835b5f04d4ea5fb757cc9b151d58989f483f330 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 16 May 2012 08:22:16 +0200 Subject: [PATCH] break immediately if we found the project path. --- gunicorn/app/djangoapp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gunicorn/app/djangoapp.py b/gunicorn/app/djangoapp.py index 1390cc6a..4b4c8790 100644 --- a/gunicorn/app/djangoapp.py +++ b/gunicorn/app/djangoapp.py @@ -20,6 +20,7 @@ def find_settings_module(path): for root, dirs, files in os.walk(path): if "settings.py" in files: project_path = root + break lvl += 1 if lvl > 2: