From e3255d583e12d8869394a60ee0ea7eaecd24c25c Mon Sep 17 00:00:00 2001 From: Oliver Brandt Date: Tue, 15 Dec 2015 09:58:19 +0100 Subject: [PATCH] use colorama in order to support ANSI sequences under windows --- bin/dotbot | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/dotbot b/bin/dotbot index e9b432b..0c7d427 100755 --- a/bin/dotbot +++ b/bin/dotbot @@ -15,6 +15,12 @@ if sys.version_info[0] >= 3: else: inject('pyyaml/lib') +# Support ANSI sequences under windows +if os.name == "nt": + inject('colorama') + import colorama + colorama.init() + if os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'dotbot')): if PROJECT_ROOT_DIRECTORY not in sys.path: sys.path.insert(0, PROJECT_ROOT_DIRECTORY)