7 # loop because macos has no recursive resolution
8 while test -L "$cmdpath"; do
9 link="$(readlink "$cmdpath")"
10 cd "$(dirname "$cmdpath")"
13 script_home="$(cd "$(dirname "$cmdpath")" && pwd -P)"
16 bup_libdir="$script_home/../lib" # bup_libdir will be adjusted during install
18 export PYTHONPATH="$bup_libdir${PYTHONPATH:+:$PYTHONPATH}"
19 export BUP_RESOURCE_PATH="$bup_libdir"
21 # This last line will be replaced with 'exec some/python "$@"