2010-08-11 17:49:03 +02:00
|
|
|
addPythonPath() {
|
2010-08-11 19:05:44 +02:00
|
|
|
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python2.7/site-packages
|
2010-08-11 17:49:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
toPythonPath() {
|
|
|
|
local paths="$1"
|
|
|
|
local result=
|
|
|
|
for i in $paths; do
|
2010-08-11 19:05:44 +02:00
|
|
|
p="$i/lib/python2.7/site-packages"
|
2010-08-11 17:49:03 +02:00
|
|
|
result="${result}${result:+:}$p"
|
|
|
|
done
|
|
|
|
echo $result
|
|
|
|
}
|
|
|
|
|
|
|
|
envHooks=(${envHooks[@]} addPythonPath)
|