193b2c26beea

God is dead
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 19 Aug 2015 17:29:04 +0000
parents d607caaf596b
children f6c9df4f2bab
branches/tags (none)
files bin/frameworkpython

Changes

--- /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 "$@"