Skip to content

Commit ce071fc

Browse files
committed
don't change working dir
1 parent b5e79bf commit ce071fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ec2/spark-ec2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@
1818
# limitations under the License.
1919
#
2020

21-
cd "`dirname $0`"
22-
PYTHONPATH="./third_party/boto-2.4.1.zip/boto-2.4.1:$PYTHONPATH" python ./spark_ec2.py "$@"
21+
SPARK_EC2_DIR="$(dirname $0)"
22+
23+
PYTHONPATH="${SPARK_EC2_DIR}/third_party/boto-2.4.1.zip/boto-2.4.1:$PYTHONPATH" \
24+
python "${SPARK_EC2_DIR}/spark_ec2.py" "$@"

0 commit comments

Comments
 (0)