#!/bin/sh set -e MORPH="${MORPH:-"$(which morph)"}" BASE="$(dirname "$0")" BASE="${BASE:-.}" BASE="$(realpath "${BASE}")" PYTHONPATH="${BASE}${PYTHONPATH:+:${PYTHONPATH}}" export PYTHONPATH MORPH_PLUGIN_PATH="$(python -c 'from os.path import *; import firehose; print(abspath(dirname(firehose.__file__)))')/plugin" export MORPH_PLUGIN_PATH exec "${MORPH}" firehose "$@"