use colorama in order to support ANSI sequences under windows
This commit is contained in:
parent
41e568e223
commit
e3255d583e
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue