Skip to content

Commit dbf6ef9

Browse files
committed
simplify eb script, no need to change into easybuild dir to set PYTHONPATH correctly
1 parent 61a9b20 commit dbf6ef9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

eb

+2-6
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@ version=`python -V 2>&1 | sed 's/^Python \([0-9]*\)\.\([0-9]*\).*/\1.\2/'`
2727

2828
# See http://docs.python.org/using/cmdline.html#cmdoption-unittest-discover-m for -m support
2929

30-
# determine absolute path name
31-
cd `dirname $0`
32-
absolute_path=$PWD
33-
cd - > /dev/null
34-
35-
export PYTHONPATH="${absolute_path}:$PYTHONPATH"
30+
# add EasyBuild top directory to PYTHONPATH
31+
export PYTHONPATH="`dirname $0`:$PYTHONPATH"
3632
if [[ "$version" = "2.4" ]]; then
3733
python "`dirname $0`/easybuild/build.py" $@
3834
else

0 commit comments

Comments
 (0)