4 __builtins__
._ = lambda x
: x
7 print "Usage: injector INTERFACE PROG [ARGS]"
8 print "PROG is a relative path inside an implementation of INTERFACE. Eg:"
9 print "injector /uri/0install/site/myprog.xml bin/myprog --help"
11 interface_uri
= os
.path
.realpath(sys
.argv
[1])
13 prog_args
= sys
.argv
[3:]
16 from gui
import GUIPolicy
19 gtk
.rc_parse_string('style "scrolled" { '
20 'GtkScrolledWindow::scrollbar-spacing = 0}\n'
21 'class "GtkScrolledWindow" style : gtk "scrolled"\n')
23 GUIPolicy(interface_uri
, prog
, prog_args
).main()