Bugfix: support non-Linux debarch
[zeroinstall.git] / zeroinstall / injector / _runenv.py
blob6294124d17f661b88970e6c939305c3ad5954616
1 """
2 Helper script for <executable> bindings.
3 """
5 # Copyright (C) 2011, Thomas Leonard
6 # See the README file for details, or visit http://0install.net.
8 import os, sys
10 def main():
11 envname = os.path.basename(sys.argv[0])
12 import json
13 args = json.loads(os.environ["0install-runenv-" + envname])
14 os.execv(args[0], args + sys.argv[1:])