2011-04-19 20:10:15 +02:00
|
|
|
addPythonPath() {
|
2012-04-27 10:20:46 +02:00
|
|
|
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.2/site-packages
|
2011-04-19 20:10:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
toPythonPath() {
|
|
|
|
local paths="$1"
|
|
|
|
local result=
|
|
|
|
for i in $paths; do
|
2012-04-27 10:20:46 +02:00
|
|
|
p="$i/lib/python3.2/site-packages"
|
2011-04-19 20:10:15 +02:00
|
|
|
result="${result}${result:+:}$p"
|
|
|
|
done
|
|
|
|
echo $result
|
|
|
|
}
|
|
|
|
|
|
|
|
envHooks=(${envHooks[@]} addPythonPath)
|