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
|
||||
|
||||
try:
|
||||
if os.name != 'posix':
|
||||
import colorama
|
||||
colorama.init()
|
||||
|
||||
from watchdog.events import PatternMatchingEventHandler
|
||||
from watchdog.observers import Observer
|
||||
|
||||
colorama.init()
|
||||
except ImportError:
|
||||
print('some modules are not installed, ffplayout may or may not work')
|
||||
# ------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user