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