mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
7c75fa4bc2
This might be jumping the gun a little, but I needed to use 3.6 locally and thought I may as well push it upstream.
16 lines
323 B
Bash
16 lines
323 B
Bash
addPythonPath() {
|
|
addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.6/site-packages
|
|
}
|
|
|
|
toPythonPath() {
|
|
local paths="$1"
|
|
local result=
|
|
for i in $paths; do
|
|
p="$i/lib/python3.6/site-packages"
|
|
result="${result}${result:+:}$p"
|
|
done
|
|
echo $result
|
|
}
|
|
|
|
envHooks+=(addPythonPath)
|