From e6eb51551cfa7e796c0e55404995481f3d401b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E5=AE=AB=E9=9B=AA=E7=8F=8A?= Date: Tue, 23 Aug 2022 03:51:36 +0800 Subject: [PATCH] Fix ci text color --- build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index a1150b754..1f1f9605c 100755 --- a/build.py +++ b/build.py @@ -38,8 +38,8 @@ def vprint(str): is_windows = os.name == 'nt' EXE_EXT = '.exe' if is_windows else '' -no_color = False -if is_windows: +no_color = 'CI' in os.environ and os.environ['CI'] == 'true' +if not no_color and is_windows: try: import colorama colorama.init()