FIXED - task 503: Allow running from read-only application folder. Patch from Nick Mazurkin mazurkin@gmail.com

http://code.google.com/p/google-refine/issues/detail?id=503

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2567 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2012-09-20 17:17:18 +00:00
parent 27e3c0c8dc
commit e483cb432d

9
refine
View File

@ -943,6 +943,15 @@ if [ ! -z "$REFINE_EXTRA_OPTS" ] ; then
add_option "-D$REFINE_EXTRA_OPTS" add_option "-D$REFINE_EXTRA_OPTS"
fi fi
if [ -z "$JYTHONPATH" ] ; then
JYTHONPATH="$REFINE_WEBAPP/WEB-INF/lib/jython"
else
JYTHONPATH="$REFINE_WEBAPP/WEB-INF/lib/jython${SEP}$JYTHONPATH"
fi
add_option "-Dpython.path=$JYTHONPATH"
add_option "-Dpython.cachedir=$HOME/.local/share/google/refine/cachedir"
# ----- Respond to the action given -------------------------------------------- # ----- Respond to the action given --------------------------------------------
case "$ACTION" in case "$ACTION" in