mirror of
1
0
Fork 0

use colorama in order to support ANSI sequences under windows

This commit is contained in:
Oliver Brandt 2015-12-15 09:58:19 +01:00
parent 41e568e223
commit e3255d583e
1 changed files with 6 additions and 0 deletions

View File

@ -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)