break immediately if we found the project path.

This commit is contained in:
benoitc 2012-05-16 08:22:16 +02:00
parent 367585c5e0
commit 8835b5f04d

View File

@ -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: