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
|
|
|
|
}
|
|
|
|
|
2014-07-08 14:20:05 +02:00
|
|
|
envHooks+=(addPythonPath)
|