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 policy
import policy
18 policy
.set_root_interface(interface_uri
)
22 window
= gui
.MainWindow(prog
, prog_args
)