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

16 lines
337 B
Bash
Raw Normal View History

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)