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

16 lines
323 B
Bash
Raw Normal View History

2013-02-16 17:11:32 +00:00
addPythonPath() {
2013-07-27 18:51:54 +00: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 18:51:54 +00:00
p="$i/lib/python3.3/site-packages"
2013-02-16 17:11:32 +00:00
result="${result}${result:+:}$p"
done
echo $result
}
2014-07-08 12:20:05 +00:00
envHooks+=(addPythonPath)