The shebang for "snap-helpers" itself is "#!/usr/bin/env python3".
The files created by "snap-helpers write-hooks" are bash scripts that get placed in snap/hooks, with the following content:
#!/bin/sh exec "$SNAP/snap/command-chain/snapcraft-runner" \\ "$SNAP/bin/snap-helpers-hook" "{hookname}"
"snap-helpers-hook" is a python script, with "#!/usr/bin/env python3" shebang as well. (those scripts are standard package entry_points that get installed as dependencies of a python part).
The shebang for "snap-helpers" itself is "#!/usr/bin/env python3".
The files created by "snap-helpers write-hooks" are bash scripts that get placed in snap/hooks, with the following content:
#!/bin/sh snap/command- chain/snapcraft -runner" \\ bin/snap- helpers- hook" "{hookname}"
exec "$SNAP/
"$SNAP/
"snap-helpers-hook" is a python script, with "#!/usr/bin/env python3" shebang as well. (those scripts are standard package entry_points that get installed as dependencies of a python part).