]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | #!/bin/sh |
2 | ||
ea8adc8c | 3 | script="$(dirname $0)"/src/bootstrap/configure.py |
7453a54e | 4 | |
ea8adc8c XL |
5 | try() { |
6 | cmd=$1 | |
223e47cc | 7 | shift |
ea8adc8c XL |
8 | T=$($cmd --version 2>/dev/null) |
9 | if [ $? -eq 0 ]; then | |
10 | exec $cmd "$script" "$@" | |
c1a9b12d SL |
11 | fi |
12 | } | |
13 | ||
ba9703b0 | 14 | try python3 "$@" |
ea8adc8c XL |
15 | try python2.7 "$@" |
16 | try python27 "$@" | |
17 | try python2 "$@" | |
18 | exec python $script "$@" |