Debian Codegraph @

07p/bin/auto

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 #! /bin/sh
2 if [ -z "$AUTO_DIR" ]; then
3 bindir=`dirname "$0"`
4 AUTO_DIR=`dirname "$bindir"`
5 # don't export AUTO_DIR: Python code will use more reliable absolute path
6 fi
7
8 if test "`uname`" = "Darwin"; then
9 if which pythonw > /dev/null; then
10 exec pythonw "$AUTO_DIR/python/auto/interactiveBindings.py" ${1+"$@"};
11 fi
12 fi
13
14 if test "$OS" = "Windows_NT" && test "$MSYSCON" = "mintty.exe"; then
15 PYTHONPATHSEP=`python -c 'import os,sys; sys.stdout.write(os.pathsep)'`
16 if test "$PYTHONPATHSEP" = ";" && command -v > /dev/null winpty; then
17 # winpty is needed so command-line history works
18 AUTO_DIR2="$AUTO_DIR"
19 unset AUTO_DIR
20 command -v > /dev/null python && exec winpty python "$AUTO_DIR2/python/auto/interactiveBindings.py" ${1+"$@"};
21 exec winpty python3 "$AUTO_DIR2/python/auto/interactiveBindings.py" ${1+"$@"};
22 fi
23 fi
24
25 command -v > /dev/null python && exec python "$AUTO_DIR/python/auto/interactiveBindings.py" ${1+"$@"};
26 exec python3 "$AUTO_DIR/python/auto/interactiveBindings.py" ${1+"$@"};