Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28aa9f4

Browse files
committed
Make the frameworkpython compatible with Python 3
1 parent 22a7b95 commit 28aa9f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/faq/virtualenv_faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ implemented in a script as below. To use this modify ``PYVER`` and
100100
PYTHON=${PATHTOPYTHON}python${PYVER}
101101
102102
# find the root of the virtualenv, it should be the parent of the dir this script is in
103-
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"`
103+
ENV=`$PYTHON -c "import os; print(os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..')))"`
104104
105105
# now run Python with the virtualenv set as Python's HOME
106106
export PYTHONHOME=$ENV

0 commit comments

Comments
 (0)