nutools/lib/nulib/bin/deploydb

13 lines
350 B
Plaintext
Raw Normal View History

2018-04-26 23:19:17 +04:00
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
MYNAME="$(basename -- "$0")"
: "${PYTHON_MAIN_MODULE:=$MYNAME}"
MYDIR="$(dirname -- "$0")"
if [ -n "$PYTHONPATH" ]; then PYTHONPATH="$MYDIR/../python:$PYTHONPATH"
else PYTHONPATH="$MYDIR/../python"
2018-04-26 23:19:17 +04:00
fi
export PYTHONPATH
exec python2.7 -m "$PYTHON_MAIN_MODULE" "$@"