Skip to content

Commit

Permalink
PYTHONPATH fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jun 23, 2015
1 parent dcc9c09 commit 4c97136
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
FWDIR="$(cd "`dirname $0`"/..; pwd)"
cd "$FWDIR"

PYTHONPATH="$FWDIR/dev/" exec python -u ./python/run-tests.py
exec python -u ./python/run-tests.py

exit

Expand Down
12 changes: 9 additions & 3 deletions python/run-tests.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@
import os
import re
import subprocess
import sys
import time

from sparktestsupport import SPARK_HOME
from sparktestsupport.shellutils import which
from sparktestsupport.modules import all_modules

# Append `SPARK_HOME/dev` to the Python path so that we can import the sparktestsupport module
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../dev/"))


from sparktestsupport import SPARK_HOME # noqa (suppress pep8 warnings)
from sparktestsupport.shellutils import which # noqa
from sparktestsupport.modules import all_modules # noqa


def print_red(text):
Expand Down

0 comments on commit 4c97136

Please sign in to comment.