30 lines
		
	
	
		
			989 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			989 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
 | 
						|
 | 
						|
PYTHON=
 | 
						|
PYTHON23="$HOME/opt/python2.3/bin/python"
 | 
						|
PYTHON24=
 | 
						|
PYTHON25=
 | 
						|
PYTHON26=
 | 
						|
 | 
						|
################################################################################
 | 
						|
# Partie non configurable
 | 
						|
 | 
						|
python="$(type -P "${PYTHON:-python}")"
 | 
						|
python23="$(type -P "${PYTHON23:-$(which python2.3 2>/dev/null)}")"
 | 
						|
python24="$(type -P "${PYTHON24:-$(which python2.4 2>/dev/null)}")"
 | 
						|
python25="$(type -P "${PYTHON25:-$(which python2.5 2>/dev/null)}")"
 | 
						|
python26="$(type -P "${PYTHON26:-$(which python2.6 2>/dev/null)}")"
 | 
						|
 | 
						|
idle="$(type -P "${IDLE:-idle}")"
 | 
						|
idle23="$(type -P "${IDLE23:-$(which idle2.3 2>/dev/null)}")"
 | 
						|
idle24="$(type -P "${IDLE24:-$(which idle2.4 2>/dev/null)}")"
 | 
						|
idle25="$(type -P "${IDLE25:-$(which idle2.5 2>/dev/null)}")"
 | 
						|
idle26="$(type -P "${IDLE26:-$(which idle2.6 2>/dev/null)}")"
 | 
						|
 | 
						|
for i in "" 23 24 25 26; do
 | 
						|
    v="python$i"
 | 
						|
    [ -x "${!v}" ] || eval "$v="
 | 
						|
    v="idle$i"
 | 
						|
    [ -x "${!v}" ] || eval "$v="
 | 
						|
done
 |