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>
diff --git a/scripts/footprint/fpdiff.py b/scripts/footprint/fpdiff.py
index 7027250..6f62fc6 100755
--- a/scripts/footprint/fpdiff.py
+++ b/scripts/footprint/fpdiff.py
@@ -18,6 +18,7 @@
from anytree import PreOrderIter
from anytree.search import find
+import colorama
from colorama import Fore
import json
import argparse
@@ -33,6 +34,8 @@
return parser.parse_args()
def main():
+ colorama.init()
+
args = parse_args()
with open(args.file1, "r") as f: