From 28aa9f4667ecdadca7773a63c44f95bd987aab86 Mon Sep 17 00:00:00 2001 From: Diego Mora Cespedes Date: Mon, 16 May 2016 11:04:00 +0200 Subject: [PATCH] Make the frameworkpython compatible with Python 3 --- doc/faq/virtualenv_faq.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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