Source code for schrodinger.application.mopac

"""
MOPAC-related modules.
"""


[docs]def no_stack(etype, value, tb): """ An exception hook that prints out slightly less frightening error messages. Use by setting sys.excepthook = no_stack. """ import sys if type(etype) == type: stype = etype.__name__ else: stype = etype print("%s:\n %s" % (stype, value), file=sys.stderr) sys.exit(1)