Mercurial > libervia-web
diff twisted/plugins/libervia.py @ 360:9834136b15ed
added setup.py for the installation with setuptools
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 18 Feb 2014 00:15:43 +0100 |
parents | 2067d6241927 |
children | fadbba1d793f |
line wrap: on
line diff
--- a/twisted/plugins/libervia.py Tue Feb 18 14:38:04 2014 +0100 +++ b/twisted/plugins/libervia.py Tue Feb 18 00:15:43 2014 +0100 @@ -28,7 +28,10 @@ from ConfigParser import SafeConfigParser, NoSectionError from os.path import expanduser -from libervia_server import Libervia +try: + from libervia_server import Libervia +except (ImportError, SystemExit): + pass # avoid raising an error when you call twisted and sat is not launched class Options(usage.Options):