1
0
Fork 0
mirror of synced 2024-06-15 13:51:08 -04:00

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

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)