Source code for schrodinger.application.jaguar

"""
Jaguar-related modules.

"""

# Copyright Schrodinger, LLC. All rights reserved.

__version__ = "1.0"


[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)
[docs]def script_dir(): """ Return the script directory under the Jaguar installation that has python scripts installed. """ import os.path import schrodinger.job.util execdir = os.environ.get('JAGUAR_EXEC', None) if not execdir: execdir = schrodinger.job.util.hunt("jaguar") return os.path.join(os.path.dirname(os.path.dirname(execdir)), "scripts")