2010-08-11 16:49:03 +01:00
|
|
|
addPythonPath() {
|
2010-08-11 18:05:44 +01:00
|
|
|
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python2.7/site-packages
|
2010-08-11 16:49:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
toPythonPath() {
|
|
|
|
local paths="$1"
|
|
|
|
local result=
|
|
|
|
for i in $paths; do
|
2010-08-11 18:05:44 +01:00
|
|
|
p="$i/lib/python2.7/site-packages"
|
2010-08-11 16:49:03 +01:00
|
|
|
result="${result}${result:+:}$p"
|
|
|
|
done
|
|
|
|
echo $result
|
|
|
|
}
|
|
|
|
|
2014-07-08 13:20:05 +01:00
|
|
|
envHooks+=(addPythonPath)
|