Update colors.py

This commit is contained in:
Richard Mwewa
2022-03-27 22:31:04 +02:00
committed by GitHub
parent 7e45fa5669
commit f79ce44bc9

View File

@@ -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 = ""