configure 275 Bytes
Newer Older
1
#!/bin/sh
2

3
script="$(dirname $0)"/src/bootstrap/configure.py
Nikita Baksalyar's avatar
Nikita Baksalyar committed
4

5 6
try() {
    cmd=$1
7
    shift
8 9 10
    T=$($cmd --version 2>/dev/null)
    if [ $? -eq 0 ]; then
        exec $cmd "$script" "$@"
11 12 13
    fi
}

14 15 16 17
try python2.7 "$@"
try python27 "$@"
try python2 "$@"
exec python $script "$@"