nixpkgs/pkgs/development/interpreters/python/3.3/setup-hook.sh

16 lines
337 B
Bash
Raw Normal View History

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)