Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: f60f572143
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (22 sloc) 0.68 kB
#!/usr/bin/env python
from twisted.internet import gtk2reactor
gtk2reactor.install()
from twisted.internet import reactor
from twisted.python import log, usage
from chiton.viewer import ChitonViewer
import sys
class Options(usage.Options):
optParameters = [
['host', 'h', None, 'host to connect to', str],
['port', 'p', 9160, 'port', int],
]
options = Options()
try:
options.parseOptions()
except usage.UsageError, errortext:
print '%s: %s' % (sys.argv[0], errortext)
print '%s: Try --help for usage details.' % (sys.argv[0])
sys.exit(1)
log.startLogging(sys.stdout)
v = ChitonViewer(options['host'], options['port'])
reactor.run()
Jump to Line
Something went wrong with that request. Please try again.