From 5cc7f6736a01f35269fb940b807bfadfd2847e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Sun, 29 Oct 2023 07:11:32 +0100 Subject: [PATCH] fix: don't produce output when imported with `$FORCE_COLOR=1` env Only fix Windows console with Colorama. Fix https://github.com/copier-org/copier/issues/1378 --- copier/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier/tools.py b/copier/tools.py index 9003fd43a..26ccddafc 100644 --- a/copier/tools.py +++ b/copier/tools.py @@ -19,7 +19,7 @@ from .types import IntSeq -colorama.init() +colorama.just_fix_windows_console() class Style: