soc: npcx: scripts: Initialise Colorama during module load

This commit adds a call to the Colorama initialisation function during
the module execution so that ANSI color sequences are properly
converted to the relevant Win32 API calls on the Windows.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2022-05-23 19:21:53 +09:00 committed by Marti Bolivar
commit b2c8f26e34

View file

@ -8,6 +8,7 @@
import sys
import argparse
import colorama
from colorama import Fore
INVALID_INPUT = -1
@ -244,3 +245,5 @@ def exit_with_failure(message):
print(Fore.RED + message)
sys.exit(EXIT_FAILURE_STATUS)
colorama.init()