Only import colorama on windows systems.
This commit is contained in:
parent
a53e1f63bc
commit
c1dc5892c8
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ from math import log, floor
|
||||||
from .output import out
|
from .output import out
|
||||||
from .configuration import UserAgent, AppName, App, SupportUrl
|
from .configuration import UserAgent, AppName, App, SupportUrl
|
||||||
from .fileutil import has_module, is_tty
|
from .fileutil import has_module, is_tty
|
||||||
from . import colorama
|
if os.name == 'nt':
|
||||||
|
from . import colorama
|
||||||
|
|
||||||
has_curses = has_module("curses")
|
has_curses = has_module("curses")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue