colorama only for windows

This commit is contained in:
jb-alvarado 2019-11-01 15:54:24 +01:00
parent e75c9232f9
commit 2bb17790b8

View File

@ -45,12 +45,12 @@ from types import SimpleNamespace
from urllib import request from urllib import request
try: try:
import colorama if os.name != 'posix':
import colorama
colorama.init()
from watchdog.events import PatternMatchingEventHandler from watchdog.events import PatternMatchingEventHandler
from watchdog.observers import Observer from watchdog.observers import Observer
colorama.init()
except ImportError: except ImportError:
print('some modules are not installed, ffplayout may or may not work') print('some modules are not installed, ffplayout may or may not work')
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------