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