From f0c8b0c2838cc8e3a5bf81e903debea18d68a926 Mon Sep 17 00:00:00 2001 From: Adriano Scoditti Date: Mon, 11 Sep 2017 16:30:38 +0200 Subject: [PATCH] When '--top' is specified there is no reason to climb --- waflib/Scripting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waflib/Scripting.py b/waflib/Scripting.py index 62293faf..1f4fe2d0 100644 --- a/waflib/Scripting.py +++ b/waflib/Scripting.py @@ -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: