color output if termcolor is installed

This commit is contained in:
MaZderMind 2014-07-23 23:36:19 +02:00
parent 3f057cc5d4
commit f425cc291c
4 changed files with 18 additions and 6 deletions

View file

@ -180,3 +180,9 @@ def events(scheduleUrl, titlemap={}):
'persons': personnames,
'personnames': ', '.join(personnames)
}
try:
from termcolor import colored
except ImportError:
def colored(str, col):
return str