projects
/
pysvrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
141ec1e
)
Deal with missing colorama.
author
Francois Fleuret
<francois@fleuret.org>
Wed, 29 Nov 2017 08:04:10 +0000
(09:04 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 29 Nov 2017 08:04:10 +0000
(09:04 +0100)
cnn-svrt.py
patch
|
blob
|
history
diff --git
a/cnn-svrt.py
b/cnn-svrt.py
index
338e145
..
0c63b85
100755
(executable)
--- a/
cnn-svrt.py
+++ b/
cnn-svrt.py
@@
-29,7
+29,10
@@
import distutils.util
import re
import signal
-from colorama import Fore, Back, Style
+try:
+ from colorama import Fore, Back, Style
+except ImportError:
+ Fore, Back, Style = '', '', ''
# Pytorch