Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18fc72a commit 47e8e38Copy full SHA for 47e8e38
1 file changed
doc/faq/virtualenv_faq.rst
@@ -120,7 +120,7 @@ Alternatively you can define an alias in your ``.bashrc`` using
120
121
.. code:: bash
122
123
- alias frameworkpython='PYTHONHOME=$VIRTUAL_ENV /usr/local/bin/python'
+ alias frameworkpython='[[ ! -z "$VIRTUAL_ENV" ]] && PYTHONHOME=$VIRTUAL_ENV /usr/local/bin/python || /usr/local/bin/python'
124
125
This alias can then be used in all of your virtualenvs without having to
126
fix every single one of them.
0 commit comments