File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ setUp () {
22
22
}
23
23
24
24
test_get_python_version () {
25
- expected=" $( $VIRTUALENVWRAPPER_PYTHON -c ' import sys; sys.stdout.write("%s.%s\n" % sys.version_info[:2])' ) "
25
+ expected=" $( $VIRTUAL_ENV /bin/python -c ' import sys; sys.stdout.write("%s.%s\n" % sys.version_info[:2])' ) "
26
26
echo " Expecting: $expected "
27
27
vers=$( virtualenvwrapper_get_python_version)
28
28
echo " Got : $vers "
Original file line number Diff line number Diff line change @@ -591,10 +591,11 @@ function workon {
591
591
592
592
# Prints the Python version string for the current interpreter.
593
593
function virtualenvwrapper_get_python_version {
594
- # Uses the Python from the virtualenv because we're trying to
595
- # determine the version installed there so we can build
596
- # up the path to the site-packages directory.
597
- python -V 2>&1 | cut -f2 -d' ' | cut -f-2 -d.
594
+ # Uses the Python from the virtualenv rather than
595
+ # VIRTUALENVWRAPPER_PYTHON because we're trying to determine the
596
+ # version installed there so we can build up the path to the
597
+ # site-packages directory.
598
+ " $VIRTUAL_ENV /bin/python" -V 2>&1 | cut -f2 -d' ' | cut -f-2 -d.
598
599
}
599
600
600
601
# Prints the path to the site-packages directory for the current environment.
You can’t perform that action at this time.
0 commit comments