From 8281490c959db8e05e935d5a3f501147e8e24aa4 Mon Sep 17 00:00:00 2001 From: Tyler Makaro Date: Tue, 14 Jan 2020 15:50:05 -0800 Subject: [PATCH] add windows terminal support --- log_symbols/symbols.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log_symbols/symbols.py b/log_symbols/symbols.py index e963d31..8c42229 100644 --- a/log_symbols/symbols.py +++ b/log_symbols/symbols.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """Provide log symbols for various log levels.""" import platform +import os from enum import Enum from colorama import init, deinit, Fore @@ -33,7 +34,7 @@ def is_supported(): os_arch = platform.system() - if os_arch != 'Windows': + if os_arch != 'Windows' or os.environ.get('WT_SESSION') is not None: return True return False