colorama only for windows
This commit is contained in:
parent
e75c9232f9
commit
2bb17790b8
@ -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')
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user