S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
Nápověda
Přihlásit se
isprogram
/
pyenv-virtualenv
zrcadlo
https://github.com/pyenv/pyenv-virtualenv.git
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Projekty
0
Vydání
42
Wiki
Aktivita
Procházet zdrojové kódy
Merge pull request
#23
from fgimian/fish-activation-fix
Repaired virtualenv activation and deactivation for the fish shell
pull/24/head
Yamashita, Yuu
před 10 roky
rodič
3f5171e2fc
21a8745bcf
revize
b9e2fc6acb
4 změnil soubory
, kde provedl
6 přidání
a
6 odebrání
Rozdělené zobrazení
Možnosti rozdílového porovnání
Zobrazit statistiky
Stáhněte soubor opravy
Stáhněte rozdílový soubor
+1
-1
bin/pyenv-sh-activate
+1
-1
bin/pyenv-sh-deactivate
+3
-3
test/activate.bats
+1
-1
test/deactivate.bats
+ 1
- 1
bin/pyenv-sh-activate
Zobrazit soubor
@ -41,7 +41,7 @@ fi
pyenv-virtualenv-prefix "${versions}" 1>/dev/null
echo "pyenv shell \"${versions}\""
echo "pyenv shell \"${versions}\"
;
"
case "$shell" in
fish ) echo ". \"$(pyenv-prefix "${versions}")/bin/activate.fish\"" ;;
* ) echo "source \"$(pyenv-prefix "${versions}")/bin/activate\"" ;;
+ 1
- 1
bin/pyenv-sh-deactivate
Zobrazit soubor
@ -11,7 +11,7 @@ set -e
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
case "$shell" in
fish ) echo "functions -q deactivate; and deactivate";;
fish ) echo "functions -q deactivate; and deactivate
;
";;
* ) echo "declare -f deactivate 1>/dev/null 2>&1 && deactivate";;
esac
echo "pyenv shell --unset"
+ 3
- 3
test/activate.bats
Zobrazit soubor
@ -19,7 +19,7 @@ setup() {
assert_success
assert_output <<EOS
pyenv shell "venv"
pyenv shell "venv"
;
source "${PYENV_ROOT}/versions/venv/bin/activate"
EOS
}
@ -37,7 +37,7 @@ EOS
assert_success
assert_output <<EOS
pyenv shell "venv"
pyenv shell "venv"
;
. "${PYENV_ROOT}/versions/venv/bin/activate.fish"
EOS
}
@ -53,7 +53,7 @@ EOS
assert_success
assert_output <<EOS
pyenv shell "venv27"
pyenv shell "venv27"
;
source "${PYENV_ROOT}/versions/venv27/bin/activate"
EOS
}
+ 1
- 1
test/deactivate.bats
Zobrazit soubor
@ -21,7 +21,7 @@ EOS
assert_success
assert_output <<EOS
functions -q deactivate; and deactivate
functions -q deactivate; and deactivate
;
pyenv shell --unset
EOS
}
Zapsat
Náhled
Načítá se…
Zrušit
Uložit