From 484f58660ad475bf8dfb08bff0ea08af9e7f7bdf Mon Sep 17 00:00:00 2001 From: Bouke van der Bijl Date: Wed, 23 Apr 2014 14:01:19 -0400 Subject: [PATCH] Let pyspark execute files even when IPYTHON=1 Also remove IPYTHON_OPTS --- bin/pyspark | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bin/pyspark b/bin/pyspark index cad982bc33477..6f2f981e06c54 100755 --- a/bin/pyspark +++ b/bin/pyspark @@ -51,13 +51,9 @@ export PYTHONPATH=$SPARK_HOME/python/:$PYTHONPATH export OLD_PYTHONSTARTUP=$PYTHONSTARTUP export PYTHONSTARTUP=$FWDIR/python/pyspark/shell.py -if [ -n "$IPYTHON_OPTS" ]; then - IPYTHON=1 -fi -# Only use ipython if no command line arguments were provided [SPARK-1134] -if [[ "$IPYTHON" = "1" && $# = 0 ]] ; then - exec ipython $IPYTHON_OPTS +if [[ "$IPYTHON" = "1" ]] ; then + exec ipython "$@" else exec "$PYSPARK_PYTHON" "$@" fi