Skip to content

Commit 8c3eabe

Browse files
committed
Makes uvcdat wrapper get path from @-variable
1 parent 002b730 commit 8c3eabe

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

CMake/cdat_modules_extra/uvcdat.in

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/bin/bash
2-
# source is not portable where as . is
3-
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4-
INSTALL_PREFIX=`dirname ${DIR}`
5-
. $DIR/setup_runtime.sh
6-
python@PYVER@ $INSTALL_PREFIX/vistrails/vistrails/uvcdat.py "$@"
2+
# source is not portable whereas . is
3+
. "@CMAKE_INSTALL_PREFIX@/bin/setup_runtime.sh"
4+
python@PYVER@ "@CMAKE_INSTALL_PREFIX@/vistrails/vistrails/uvcdat.py" "$@"

0 commit comments

Comments
 (0)