2010-04-17 20:28:25 +02:00
|
|
|
addPythonPath() {
|
2011-02-02 12:16:45 +01:00
|
|
|
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.1/site-packages
|
2010-04-17 20:28:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
toPythonPath() {
|
|
|
|
local paths="$1"
|
|
|
|
local result=
|
|
|
|
for i in $paths; do
|
2011-02-02 12:16:45 +01:00
|
|
|
p="$i/lib/python3.1/site-packages"
|
2010-04-17 20:28:25 +02:00
|
|
|
result="${result}${result:+:}$p"
|
|
|
|
done
|
|
|
|
echo $result
|
|
|
|
}
|
|
|
|
|
|
|
|
envHooks=(${envHooks[@]} addPythonPath)
|