From 9112587d1811db771233514e07837ee40f73c4a5 Mon Sep 17 00:00:00 2001 From: "Oleg E. Peil" Date: Thu, 24 Mar 2016 19:57:49 +0100 Subject: [PATCH] Fixed a path to pytriqs in shell scripts Now 'pytriqs' is invoked with an absolute path to the current TRIQS installation. This ensures that the scripts will call a compatible version of 'pytriqs'. --- shells/plovasp.bash.in | 2 +- shells/vasp_dmft.bash.in | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shells/plovasp.bash.in b/shells/plovasp.bash.in index 87798b99..ce55bcde 100755 --- a/shells/plovasp.bash.in +++ b/shells/plovasp.bash.in @@ -1,4 +1,4 @@ #!/bin/bash -pytriqs -m pytriqs.applications.dft.converters.plovasp.converter $@ +@CMAKE_INSTALL_PREFIX@/bin/pytriqs -m pytriqs.applications.dft.converters.plovasp.converter $@ diff --git a/shells/vasp_dmft.bash.in b/shells/vasp_dmft.bash.in index 16d6f971..b80e8bb6 100755 --- a/shells/vasp_dmft.bash.in +++ b/shells/vasp_dmft.bash.in @@ -81,5 +81,7 @@ echo " Script name: $DMFT_SCRIPT" rm -f vasp.lock stdbuf -o 0 $MPIRUN_CMD -np $NPROC "$VASP_DIR/vasp" & -$MPIRUN_CMD -np $NPROC pytriqs -m pytriqs.applications.dft.converters.plovasp.sc_dmft $(jobs -p) $DMFT_SCRIPT || kill %1 +PYTRIQS=@CMAKE_INSTALL_PREFIX@/bin/pytriqs + +$MPIRUN_CMD -np $NPROC $PYTRIQS -m pytriqs.applications.dft.converters.plovasp.sc_dmft $(jobs -p) $DMFT_SCRIPT || kill %1