Comment 11 for bug 1669306

Revision history for this message
Stuart Bishop (stub) wrote :

The apps section of prime/meta/snap.yaml does not mention python3 at all:

apps:
  juju-act:
    command: command-juju-act.wrapper

Setting the command in snapcraft.yaml per above fails to build:

[Errno 2] No such file or directory: '/home/stub/src/juju-act/prime/$SNAP/usr/bin/python3'

If I set command: to '/usr/bin/python3 $SNAP/bin/juju-act', the built snap works fine as expected. The resulting wrapper is calling the correct python3 (although there is a double // that might be a worry):

#!/bin/sh
exec "$SNAP//usr/bin/python3" $SNAP/bin/juju-act "$@"