File: vmtk-startup

package info (click to toggle)
vmtk 1.3%2Bdfsg-2.1%2Bdeb9u1
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 8,932 kB
  • sloc: cpp: 82,947; ansic: 31,817; python: 21,462; perl: 381; makefile: 93; ruby: 41; sh: 19
file content (21 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

if [ "$BASH_SOURCE" == "$0" ];then
  BUNDLE=`echo "$0" | sed -e 's/\/Contents\/MacOS\/.*//'`
else
  BUNDLE=`echo "$BASH_SOURCE" | sed -e 's/\/Contents\/MacOS\/.*//'`
fi
RESOURCES=$BUNDLE/Contents/Resources

echo "BUNDLE: $BUNDLE"
echo "RESOURCES: $RESOURCES"

VMTKHOME=$RESOURCES

export PATH=$VMTKHOME/bin:$PATH
export DYLD_LIBRARY_PATH=$VMTKHOME/lib/vtk-5.10:$VMTKHOME/lib/InsightToolkit:$VMTKHOME/lib/vmtk:$DYLD_LIBRARY_PATH
export PYTHONPATH=$VMTKHOME/bin/Python:$VMTKHOME/lib/vtk-5.10:$VMTKHOME/lib/vmtk:$PYTHONPATH

if [ "$BASH_SOURCE" == "$0" ];then
  exec "/usr/bin/python" "$RESOURCES/bin/vmtk"
fi