color output if termcolor is installed
This commit is contained in:
parent
3f057cc5d4
commit
f425cc291c
4 changed files with 18 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue