Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
Hjälp
Logga in
isprogram
/
pyenv-virtualenv
spegling av
https://github.com/pyenv/pyenv-virtualenv.git
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Projects
0
Släpp
42
Wiki
Aktiviteter
Bläddra i källkod
Support creating shims of virtual environments in `envs` (
#103
)
pull/106/head
Yamashita, Yuu
9 år sedan
förälder
0df362e8c8
incheckning
7e821de319
1 ändrade filer
med
11 tillägg
och
0 borttagningar
Delad Vy
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
etc/pyenv.d/rehash/envs.bash
+ 11
- 0
etc/pyenv.d/rehash/envs.bash
Visa fil
@ -0,0 +1,11 @@
virtualenv_list_executable_names
(
)
{
local
file
shopt
-s nullglob
for
file in
"
$PYENV_ROOT
"
/versions/*/envs/*/bin/*
;
do
echo
"
${
file
##*/
}
"
done
shopt
-u nullglob
}
if
declare
-f make_shims 1>/dev/null 2>
&
1
;
then
make_shims
$(
virtualenv_list_executable_names
|
sort -u
)
fi
Skriv
Förhandsgranska
Laddar…
Avbryt
Spara