4 __builtins__
._ = lambda x
: x
7 print "Usage: injector-gui INTERFACE [ARGS]"
9 print "injector http://example.com/myprog.xml --help"
11 interface_uri
= sys
.argv
[1]
12 if not interface_uri
.startswith('http:'):
13 interface_uri
= os
.path
.realpath(interface_uri
) # For testing
14 prog_args
= sys
.argv
[2:]
17 from gui
import GUIPolicy
20 gtk
.rc_parse_string('style "scrolled" { '
21 'GtkScrolledWindow::scrollbar-spacing = 0}\n'
22 'class "GtkScrolledWindow" style : gtk "scrolled"\n')
24 GUIPolicy(interface_uri
, prog_args
).main()