Python 3.3 add setup-hook

This commit is contained in:
Cillian de Róiste 2013-03-28 01:03:30 +01:00
parent 49b23b29dd
commit 3da635c88a

View File

@ -0,0 +1,15 @@
addPythonPath() {
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.2/site-packages
}
toPythonPath() {
local paths="$1"
local result=
for i in $paths; do
p="$i/lib/python3.2/site-packages"
result="${result}${result:+:}$p"
done
echo $result
}
envHooks=(${envHooks[@]} addPythonPath)