Fix ci text color

This commit is contained in:
南宫雪珊 2022-08-23 03:51:36 +08:00 committed by GitHub
parent c5c608f0d3
commit e6eb51551c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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