summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/3.2/setup-hook.sh
blob: e8215ef9877ccc2fe555e554516219726e4ab246 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addPythonPath() {
    addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.2/site-packages
}

toPythonPath() {
    local paths="$1"
    local result=
    for i in $paths; do
        p="$i/lib/python3.2/site-packages"
        result="${result}${result:+:}$p"
    done
    echo $result
}

envHooks+=(addPythonPath)