3
# get path of this script
7
# We want to avoid that multiple system installations of OpenWalnut cause some weird loading of libs. We want ours (relative to our executable) to be loaded:
8
Libs="libopenwalnut_biosig.so.1 libopenwalnut_eep.so.1 libopenwalnut_niftiio.so.1 libopenwalnut_niftiznz.so.1"
9
# Well, this one needs to be there! If not, your installation is wrong.
10
Preloads="lib/libopenwalnut.so.1"
11
# We need to ensure the libs are there. If not, do not add them to the preloads variable
14
if [ -e "lib/$lib" ]; then
15
Preloads=$Preloads:lib/$lib
19
export LD_PRELOAD=$Preloads