setup-hooks using addToSearchPath

I've accidentially reverted setup-hooks while merging with trunk. Correcting it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=9821
This commit is contained in:
Yury G. Kudryashov
2007-12-01 20:05:26 +00:00
parent c4640d5f49
commit 62676e09eb
8 changed files with 17 additions and 38 deletions

View File

@@ -1,8 +1,5 @@
addPythonPath() {
local p=$1/lib/python2.4/site-packages
if test -d $p; then
export PYTHONPATH="${PYTHONPATH}${PYTHONPATH:+:}$p"
fi
addToSearchPathWithCustomDelimiter : PYTHONPATH /lib/python2.4/site-packages "" $1
}
toPythonPath() {