mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
break immediately if we found the project path.
This commit is contained in:
parent
367585c5e0
commit
8835b5f04d
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user