Commit 29e38473 authored by Nate Case's avatar Nate Case Committed by Jeremy Kerr
Browse files

parsemail: Dynamically determine PATCHWORK_BASE



Remove hardcoded PATCHWORK_BASE in favor of determining it
relative to the script's location.
Signed-off-by: default avatarNate Case <ncase@xes-inc.com>
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent f574079b
......@@ -19,7 +19,8 @@
# along with Patchwork; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
PATCHWORK_BASE="/srv/patchwork"
BIN_DIR=`dirname $0`
PATCHWORK_BASE=`readlink -e $BIN_DIR/../../..`
PYTHONPATH="$PATCHWORK_BASE/apps":"$PATCHWORK_BASE/lib/python" \
DJANGO_SETTINGS_MODULE=settings \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment