mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
no need to import print_function in this case
This commit is contained in:
parent
4263783195
commit
6915cd0320
|
|
@ -36,7 +36,7 @@ virtualenv_version() {
|
|||
virtualenv_origin() {
|
||||
local version="$1"
|
||||
local prefix="$(pyenv-prefix "${version}")"
|
||||
local origin="$("${prefix}/bin/python" -c 'from __future__ import print_function;import sys;print(sys.real_prefix)' 2>/dev/null || true)"
|
||||
local origin="$("${prefix}/bin/python" -c 'import sys;print(sys.real_prefix)' 2>/dev/null || true)"
|
||||
echo "${origin:-unknown}"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue