2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 11:51:20 +01:00

When '--top' is specified there is no reason to climb

This commit is contained in:
Adriano Scoditti 2017-09-11 16:30:38 +02:00 committed by ita1024
parent a61742affb
commit f0c8b0c283

View File

@ -53,6 +53,7 @@ def waf_entry_point(current_directory, version, wafdir):
(options, commands, env) = ctx.parse_cmd_args(allow_unknown=True)
if options.top:
Context.run_dir = Context.top_dir = options.top
no_climb = True
if options.out:
Context.out_dir = options.out
@ -67,7 +68,7 @@ def waf_entry_point(current_directory, version, wafdir):
# try to find a lock file (if the project was configured)
# at the same time, store the first wscript file seen
cur = start_dir
while cur and not Context.top_dir:
while cur:
try:
lst = os.listdir(cur)
except OSError: