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:
parent
e332ddb5b4
commit
b2c8f26e34
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue