1
0
Fork 0
mirror of synced 2024-11-22 16:25:34 -05: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: else:
inject('pyyaml/lib') 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 os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'dotbot')):
if PROJECT_ROOT_DIRECTORY not in sys.path: if PROJECT_ROOT_DIRECTORY not in sys.path:
sys.path.insert(0, PROJECT_ROOT_DIRECTORY) sys.path.insert(0, PROJECT_ROOT_DIRECTORY)