File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1+ 2010-04-29 Doug Hellmann <dhellmann@racemi.com>
2+
3+ * virtualenvwrapper.sh (virtualenvwrapper_get_python_version): Add
4+ a comment about why we're using the $PATH python instead of the
5+ one where the wrappers are installed.
6+ (add2virtualenv): Use the install-tree python instead of the one
7+ from $PATH.
8+
192010-04-26 Doug Hellmann <dhellmann@racemi.com>
210
311 * virtualenvwrapper.sh (virtualenvwrapper_tempfile): Add a suffix
Original file line number Diff line number Diff line change 88 <http://www.doughellmann.com/docs/virtualenvwrapper/es/> `__ via
99 Manuel Kaufmann's fork at
1010 http://bitbucket.org/humitos/virtualenvwrapper-es-translation/
11+ - Fixed improper use of python from ``$PATH `` instead of the
12+ location where the wrappers are installed. See `issue #41
13+ <http://bitbucket.org/dhellmann/virtualenvwrapper/issue/41/> `__.
1114
12152.1
1316
Original file line number Diff line number Diff line change 308308
309309# Prints the Python version string for the current interpreter.
310310virtualenvwrapper_get_python_version () {
311+ # Uses the Python from the virtualenv because we're trying to
312+ # determine the version installed there so we can build
313+ # up the path to the site-packages directory.
311314 python -c ' import sys; print ".".join(str(p) for p in sys.version_info[:2])'
312315}
313316
@@ -357,7 +360,7 @@ add2virtualenv () {
357360 touch " $path_file "
358361 for pydir in " $@ "
359362 do
360- absolute_path=$( python -c " import os; print os.path.abspath(\" $pydir \" )" )
363+ absolute_path=$( " $VIRTUALENVWRAPPER_PYTHON " -c " import os; print os.path.abspath(\" $pydir \" )" )
361364 if [ " $absolute_path " != " $pydir " ]
362365 then
363366 echo " Warning: Converting \" $pydir \" to \" $absolute_path \" " 1>&2
You can’t perform that action at this time.
0 commit comments