mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
parent
c4c82e908e
commit
2136f3a3cd
1 changed files with 1 additions and 1 deletions
|
|
@ -591,7 +591,7 @@ def colorize(color_name, text):
|
|||
"""Colorize text if colored output is enabled. (Like _colorize but
|
||||
conditional.)
|
||||
"""
|
||||
if config["ui"]["color"]:
|
||||
if config["ui"]["color"] and "NO_COLOR" not in os.environ:
|
||||
global COLORS
|
||||
if not COLORS:
|
||||
# Read all color configurations and set global variable COLORS.
|
||||
|
|
|
|||
Loading…
Reference in a new issue