|
@@ -10,7 +10,7 @@ from typing import Dict, List, Set
|
|
|
|
|
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../"))
|
|
|
|
|
|
-from misc.utility.color import STDOUT_COLOR, Ansi, toggle_color
|
|
|
+from misc.utility.color import NO_COLOR, STDOUT_COLOR, Ansi, toggle_color
|
|
|
|
|
|
################################################################################
|
|
|
# Config #
|
|
@@ -114,6 +114,8 @@ def validate_tag(elem: ET.Element, tag: str) -> None:
|
|
|
|
|
|
|
|
|
def color(color: str, string: str) -> str:
|
|
|
+ if NO_COLOR:
|
|
|
+ return string
|
|
|
color_format = "".join([str(x) for x in colors[color]])
|
|
|
return f"{color_format}{string}{Ansi.RESET}"
|
|
|
|