1
0
mirror of https://github.com/topjohnwu/Magisk.git synced 2025-04-05 20:55:38 +00:00

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

@ -38,8 +38,8 @@ def vprint(str):
is_windows = os.name == 'nt' is_windows = os.name == 'nt'
EXE_EXT = '.exe' if is_windows else '' EXE_EXT = '.exe' if is_windows else ''
no_color = False no_color = 'CI' in os.environ and os.environ['CI'] == 'true'
if is_windows: if not no_color and is_windows:
try: try:
import colorama import colorama
colorama.init() colorama.init()