mirror of
https://github.com/frappe/bench.git
synced 2025-01-22 22:58:31 +00:00
Merge pull request #1584 from jmishra01/avoid_multiple_check
fix: Avoid continue loop in is_bench_directory
This commit is contained in:
commit
af8ed34201
@ -43,6 +43,9 @@ def is_bench_directory(directory=os.path.curdir):
|
||||
for folder in paths_in_bench:
|
||||
path = os.path.abspath(os.path.join(directory, folder))
|
||||
is_bench = is_bench and os.path.exists(path)
|
||||
# Once is_bench becomes false, it will always be false, even if other path exists.
|
||||
if not is_bench:
|
||||
break
|
||||
|
||||
return is_bench
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user