From f79ce44bc9a88cadaa92bd3d9d9adf916834e96a Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Sun, 27 Mar 2022 22:31:04 +0200 Subject: [PATCH] Update colors.py --- lib/colors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/colors.py b/lib/colors.py index 411bcf3..2f2732b 100644 --- a/lib/colors.py +++ b/lib/colors.py @@ -1,9 +1,10 @@ import sys +# Colors will be unavailable on non-linux machines colors = True -machine = sys.platform # Detecting the os +machine = sys.platform if machine.lower().startswith(("os", "win", "darwin")): - colors = False # Colors will not be displayed + colors = False if not colors: reset = red = white = green = ""