Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
import sys
from som.vm.universe import main, Exit

try:
    main(sys.argv)
except Exit, e:
    sys.exit(e.code)
sys.exit(0)
Ejemplo n.º 3
0
def entry_point(argv):
    try:
        main(argv)
    except Exit, e:
        return e.code
Ejemplo n.º 4
0
def entry_point(argv):
    try:
        main(argv)
    except Exit, e:
        return e.code