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 <
[email protected] >
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
+
1
9
2010-04-26 Doug Hellmann <
[email protected] >
2
10
3
11
* virtualenvwrapper.sh (virtualenvwrapper_tempfile): Add a suffix
Original file line number Diff line number Diff line change 8
8
<http://www.doughellmann.com/docs/virtualenvwrapper/es/> `__ via
9
9
Manuel Kaufmann's fork at
10
10
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/> `__.
11
14
12
15
2.1
13
16
Original file line number Diff line number Diff line change 308
308
309
309
# Prints the Python version string for the current interpreter.
310
310
virtualenvwrapper_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.
311
314
python -c ' import sys; print ".".join(str(p) for p in sys.version_info[:2])'
312
315
}
313
316
@@ -357,7 +360,7 @@ add2virtualenv () {
357
360
touch " $path_file "
358
361
for pydir in " $@ "
359
362
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 \" )" )
361
364
if [ " $absolute_path " != " $pydir " ]
362
365
then
363
366
echo " Warning: Converting \" $pydir \" to \" $absolute_path \" " 1>&2
You can’t perform that action at this time.
0 commit comments