We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61a9b20 commit dbf6ef9Copy full SHA for dbf6ef9
eb
@@ -27,12 +27,8 @@ version=`python -V 2>&1 | sed 's/^Python \([0-9]*\)\.\([0-9]*\).*/\1.\2/'`
27
28
# See http://docs.python.org/using/cmdline.html#cmdoption-unittest-discover-m for -m support
29
30
-# determine absolute path name
31
-cd `dirname $0`
32
-absolute_path=$PWD
33
-cd - > /dev/null
34
-
35
-export PYTHONPATH="${absolute_path}:$PYTHONPATH"
+# add EasyBuild top directory to PYTHONPATH
+export PYTHONPATH="`dirname $0`:$PYTHONPATH"
36
if [[ "$version" = "2.4" ]]; then
37
python "`dirname $0`/easybuild/build.py" $@
38
else
0 commit comments