1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/bin/sh
#
# Used to start the Jython interpreter.
#
if [ -n "$JYTHON_WRAPPER_DEBUG" ]; then
set -x
fi
unset jython_compiler
if [ -n "$CALLED_FROM_JYTHONC" ]; then
jython_compiler=-Dpython.jythonc.compiler="$JAVAC"
fi
jython_home="$(dirname "$(dirname "$(readlink -f "$0")")")"
python_path="$jython_home"/Lib
exec java -jar /usr/share/java/jython.jar \
-Dpython.home="$jython_home" \
-Dpython.path="$python_path" \
-Dpython.executable="$0" \
-Dpython.console=org.python.util.JLineConsole \
$jython_compiler \
"$@"
|