comparison 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
comparison
equal deleted inserted replaced
359:151bf1afd97e 360:9834136b15ed
26 26
27 from xdg.BaseDirectory import save_config_path 27 from xdg.BaseDirectory import save_config_path
28 from ConfigParser import SafeConfigParser, NoSectionError 28 from ConfigParser import SafeConfigParser, NoSectionError
29 from os.path import expanduser 29 from os.path import expanduser
30 30
31 from libervia_server import Libervia 31 try:
32 from libervia_server import Libervia
33 except (ImportError, SystemExit):
34 pass # avoid raising an error when you call twisted and sat is not launched
32 35
33 36
34 class Options(usage.Options): 37 class Options(usage.Options):
35 optParameters = [['port', 'p', 8080, 'The port number to listen on.']] 38 optParameters = [['port', 'p', 8080, 'The port number to listen on.']]
36 39