bin/frameworkpython @ 5d1659688c9b

More
author Steve Losh <steve@stevelosh.com>
date Mon, 26 Nov 2018 10:31:19 -0500
parents 193b2c26beea
children (none)
#!/bin/bash

# what real Python executable to use
PYVER=3.4
PATHTOPYTHON=/usr/local/bin/
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\"), '..'))"`

# now run Python with the virtualenv set as Python's HOME
export PYTHONHOME=$VIRTUAL_ENV
exec env PYTHONPATH= $PYTHON -m IPython "$@"