From: Francois Fleuret Date: Wed, 29 Nov 2017 08:04:10 +0000 (+0100) Subject: Deal with missing colorama. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=24789240ca5395a857c16e602a2d0f5e8cb176d8;p=pysvrt.git Deal with missing colorama. --- diff --git a/cnn-svrt.py b/cnn-svrt.py index 338e145..0c63b85 100755 --- 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