| 1 |
#! /bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 |
if [scip-shell system . . `[`. -z "$AUTO_DIR" ]; then |
| •3 |
AUTO_DIR=/usr/lib/auto-07pscip-shell filesystem . . `/usr/lib/auto-07p`. |
| 4 |
# don't export AUTO_DIR: Python code will use more reliable absolute path |
| 5 |
fi |
| 6 |
|
| 7 |
if testscip-shell system . . test. "`unamescip-shell system . . uname.`" = "Darwin"; then |
| 8 |
if whichscip-shell system . . which. pythonw > /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 9 |
exec pythonw "$AUTO_DIR/python/auto/interactiveBindings.py" ${1+"$@"}; |
| 10 |
fi |
| 11 |
fi |
| 12 |
|
| 13 |
if testscip-shell system . . test. "$OS" = "Windows_NT" && testscip-shell system . . test. "$MSYSCON" = "mintty.exe"; then |
| 14 |
PYTHONPATHSEP=`python -c 'import os,sys; sys.stdout.write(os.pathsep)'` |
| 15 |
if testscip-shell system . . test. "$PYTHONPATHSEP" = ";" && command -v > /dev/nullscip-shell filesystem . . `/dev/null`. winpty; then |
| 16 |
# winpty is needed so command-line history works |
| 17 |
AUTO_DIR2="$AUTO_DIR" |
| 18 |
unset AUTO_DIR |
| 19 |
command -v > /dev/nullscip-shell filesystem . . `/dev/null`. python && exec winpty python "$AUTO_DIR2/python/auto/interactiveBindings.py" ${1+"$@"}; |
| 20 |
exec winpty python3 "$AUTO_DIR2/python/auto/interactiveBindings.py" ${1+"$@"}; |
| 21 |
fi |
| 22 |
fi |
| 23 |
|
| 24 |
exec python3 "$AUTO_DIR/python/auto/interactiveBindings.py" ${1+"$@"}; |