Added help.
[zeroinstall/solver.git] / run.py
blob405624abde5beed11e7196bad629fb3a1228f8e8
1 import os, sys
3 def execute(selection, iface, prog, prog_args):
4 selection.setup_bindings()
6 prog_path = os.path.join(selection[iface].path, prog)
7 if not os.path.exists(prog_path):
8 print "'%s' does not exist." % prog_path
9 print "(implementation '%s' + program '%s')" % (chosen.path, prog)
10 sys.exit(1)
11 os.execl(prog_path, prog_path, *prog_args)