e12b421add
merge cleanly right away (kde-4, kernel stuff) so it should be merged later. But the stdenv stuff is all there. svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10793
16 lines
341 B
Bash
16 lines
341 B
Bash
addPythonPath() {
|
|
addToSearchPathWithCustomDelimiter : PYTHONPATH /lib/python2.5/site-packages "" $1
|
|
}
|
|
|
|
toPythonPath() {
|
|
local paths="$1"
|
|
local result=
|
|
for i in $paths; do
|
|
p="$i/lib/python2.5/site-packages"
|
|
result="${result}${result:+:}$p"
|
|
done
|
|
echo $result
|
|
}
|
|
|
|
envHooks=(${envHooks[@]} addPythonPath)
|