diff --git a/doc/faq/virtualenv_faq.rst b/doc/faq/virtualenv_faq.rst index 9c385aafd25..934649f993c 100644 --- a/doc/faq/virtualenv_faq.rst +++ b/doc/faq/virtualenv_faq.rst @@ -100,7 +100,7 @@ implemented in a script as below. To use this modify ``PYVER`` and PYTHON=${PATHTOPYTHON}python${PYVER} # find the root of the virtualenv, it should be the parent of the dir this script is in - ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"` + ENV=`$PYTHON -c "import os; print(os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..')))"` # now run Python with the virtualenv set as Python's HOME export PYTHONHOME=$ENV