2013-02-16 18:11:32 +01:00
|
|
|
addPythonPath() {
|
2013-07-27 20:51:54 +02:00
|
|
|
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.3/site-packages
|
2013-02-16 18:11:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
toPythonPath() {
|
|
|
|
local paths="$1"
|
|
|
|
local result=
|
|
|
|
for i in $paths; do
|
2013-07-27 20:51:54 +02:00
|
|
|
p="$i/lib/python3.3/site-packages"
|
2013-02-16 18:11:32 +01:00
|
|
|
result="${result}${result:+:}$p"
|
|
|
|
done
|
|
|
|
echo $result
|
|
|
|
}
|
|
|
|
|
|
|
|
envHooks=(${envHooks[@]} addPythonPath)
|