# HG changeset patch # User Steve Losh # Date 1440005344 0 # Node ID 193b2c26beea344aaf3bdd2dfff0e129d22b26bb # Parent d607caaf596b951d14f58d0a8342d2c2462372f6 God is dead diff -r d607caaf596b -r 193b2c26beea bin/frameworkpython --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/frameworkpython Wed Aug 19 17:29:04 2015 +0000 @@ -0,0 +1,13 @@ +#!/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 "$@"