2 Helper script for <executable> bindings.
5 # Copyright (C) 2011, Thomas Leonard
6 # See the README file for details, or visit http://0install.net.
11 envname
= os
.path
.basename(sys
.argv
[0])
13 args
= json
.loads(os
.environ
["0install-runenv-" + envname
])
14 os
.execv(args
[0], args
+ sys
.argv
[1:])