@@ -64,27 +64,36 @@ and the location of the script installed with this package::
6464After editing it, reload the startup file (e.g., run: ``source
6565~/.bashrc ``).
6666
67- Python Interpreter and $PATH
68- ============================
67+ .. _variable-VIRTUALENVWRAPPER_VIRTUALENV :
6968
70- During startup, ``virtualenvwrapper.sh `` finds the first ``python `` on
71- the ``$PATH `` and remembers it to use later. This eliminates any
72- conflict as the ``$PATH `` changes, enabling interpreters inside
73- virtual environments where virtualenvwrapper is not installed.
74- Because of this behavior, it is important for the ``$PATH `` to be set
75- **before ** sourcing ``virtualenvwrapper.sh ``. For example::
69+ .. _variable-VIRTUALENVWRAPPER_PYTHON :
70+
71+ Python Interpreter, virtualenv, and $PATH
72+ =========================================
73+
74+ During startup, ``virtualenvwrapper.sh `` finds the first ``python ``
75+ and ``virtualenv `` programs on the ``$PATH `` and remembers them to use
76+ later. This eliminates any conflict as the ``$PATH `` changes,
77+ enabling interpreters inside virtual environments where
78+ virtualenvwrapper is not installed or where different versions of
79+ virtualenv are installed. Because of this behavior, it is important
80+ for the ``$PATH `` to be set **before ** sourcing
81+ ``virtualenvwrapper.sh ``. For example::
7682
7783 export PATH=/usr/local/bin:$PATH
7884 source /usr/local/bin/virtualenvwrapper.sh
7985
8086To override the ``$PATH `` search, set the variable
8187``VIRTUALENVWRAPPER_PYTHON `` to the full path of the interpreter to
82- use (also **before ** sourcing ``virtualenvwrapper.sh ``). For
83- example::
88+ use and ``VIRTUALENVWRAPPER_VIRTUALENV `` to the full path of the
89+ ``virtualenv `` binary to use. Both variables *must * be set before
90+ sourcing ``virtualenvwrapper.sh ``. For example::
8491
8592 export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
93+ export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
8694 source /usr/local/bin/virtualenvwrapper.sh
8795
96+
8897Quick-Start
8998===========
9099
0 commit comments