def entry_point(argv): try: main(argv) except Exit as e: return e.code except ParseError as e: os.write(2, str(e)) return 1 except Exception as e: os.write(2, "ERROR: %s thrown during execution.\n" % e) return 1 return 1
import sys from som.vm.universe import main, Exit try: main(sys.argv) except Exit, e: sys.exit(e.code) sys.exit(0)
def entry_point(argv): try: main(argv) except Exit, e: return e.code