Consider locating the `weffe` executable at `/usr/share/weffe/weffe-or-other-name` and then linking to it in the `bin` directory, e.g., `cd /usr/bin; ln -s ../share/weffe/weffe`.
Your script can find its location with the `dirname` command. When its a symlink, the symlink path will be returned. So, if you want to find its "real" path then you may use a combination of `dirname` and `readlink`.
#!/usr/bin/env bash
# Assuming you have soft linked in the bin dir.
# cd /usr/bin; ln -s ../share/weffe/weffe
# /usr/share/weffe/weffe
script_path="$(dirname "$0")"
# GNU readlink requires a -f argument.
# macOS realink does not require -f argument.
script_real_relative_path="$(readlink "$0")"
echo "script path: $script_path"
echo "script real path: $script_real_relative_path"