summaryrefslogtreecommitdiff
path: root/firehose.sh
blob: 109ef81c557df077608a2e232982a5dd46cf3b97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

MORPH="${MORPH:-"$(which morph)"}"

BASE="$(dirname "$0")"
BASE="${BASE:-.}"
BASE="$(realpath "${BASE}")"

# Currently the only way to get this to work is to hardcode the path of the plugin.
# Obviously this is not ideal, but until a working method is obtained this remains
# our best option at present.

MORPH_PLUGIN_PATH="/usr/lib/python2.7/site-packages/firehose-0.1-py2.7.egg/firehose/plugin"

export MORPH_PLUGIN_PATH

PYTHONPATH="${BASE}${PYTHONPATH:+:${PYTHONPATH}}:"

export PYTHONPATH

exec "${MORPH}" firehose "$@" --config=/etc/firehose.conf