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()