File: jython_launcher

package info (click to toggle)
jython 2.7.1%2Brepack1-4~deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 63,416 kB
  • sloc: python: 639,274; java: 296,480; xml: 1,743; sh: 396; ansic: 126; makefile: 72
file content (23 lines) | stat: -rwxr-xr-x 534 bytes parent folder | download
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 \
  "$@"