diff options
author | Simon Glass | 2024-07-17 16:56:58 +0100 |
---|---|---|
committer | Simon Glass | 2024-07-26 08:01:06 -0600 |
commit | 035ecb44ecdf0577bf96e7b3545511bb33f9e010 (patch) | |
tree | bff1e25b3a509b614f13be15c904ea392c4928cb | |
parent | 382c662c825416f875c082154e63a35532dab2e3 (diff) |
qconfig: Move getting the colour to where it is needed
Move this assignment down to just above where it is needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rwxr-xr-x | tools/qconfig.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/qconfig.py b/tools/qconfig.py index 9052aedf57d..5d6e468d1d8 100755 --- a/tools/qconfig.py +++ b/tools/qconfig.py @@ -1535,9 +1535,6 @@ def main(): return 1 unittest.main() - col = terminal.Color(terminal.COLOR_NEVER if args.nocolour - else terminal.COLOR_IF_TERMINAL) - if args.scan_source: do_scan_source(os.getcwd(), args.update) return 0 @@ -1584,6 +1581,9 @@ def main(): toolchains = toolchain.Toolchains() toolchains.GetSettings() toolchains.Scan(verbose=False) + + col = terminal.Color(terminal.COLOR_NEVER if args.nocolour + else terminal.COLOR_IF_TERMINAL) progress = move_config(toolchains, args, db_queue, col) db_queue.join() |