Skip to content

Commit

Permalink
when testing development version of Dimple don't use ccp4-python
Browse files Browse the repository at this point in the history
because then the dimple modules from CCP4 installation are imported
  • Loading branch information
wojdyr committed Apr 20, 2018
1 parent 26f9adb commit d558937
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions dimple
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
this_dir="$(cd "$(dirname "$0")" && pwd)"
if [ -e "$this_dir/main.py" ] && [ "$this_dir" != "$CCP4/bin" ]; then
# development (source tree) version
if [ -e "$CCP4/bin/ccp4-python" ]; then
exec "$CCP4/bin/ccp4-python" "$this_dir/main.py" "$@"
else
exec python2.7 "$this_dir/main.py" "$@"
fi
exec python2.7 "$this_dir/main.py" "$@"
else
# installed module
exec "$CCP4/bin/ccp4-python" -m dimple "$@"
Expand Down
4 changes: 2 additions & 2 deletions tests/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
@set testdir=%~dp0

@echo === Run dimple on artificial thaumatin example ===
@set PYTHONPATH=%testdir%..
@call ccp4-python "%testdir%..\main.py" "%testdir%thaumatin.mtz" "%testdir%thaumatin.pdb" "%testdir%out" %*
@set PYTHONPATH=%testdir%..\..
@call %CCP4%\..\Python2.7\python "%testdir%..\main.py" "%testdir%thaumatin.mtz" "%testdir%thaumatin.pdb" "%testdir%out" %*
@pause

0 comments on commit d558937

Please sign in to comment.