scripts: fpdiff: Initialise Colorama during start-up

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:15:23 +09:00 committed by Marti Bolivar
commit 2ee02f9dfa

View file

@ -18,6 +18,7 @@ from anytree.importer import DictImporter
from anytree import PreOrderIter
from anytree.search import find
import colorama
from colorama import Fore
import json
import argparse
@ -33,6 +34,8 @@ def parse_args():
return parser.parse_args()
def main():
colorama.init()
args = parse_args()
with open(args.file1, "r") as f: