Maybe, we could use a variable for cwd, the directory where snapcraft is called from.
That way we could have /home/elopio/project/snap/snapcraft.yaml with source: $SNAPCRAFT_ROOT
and /home/elopio/project/packaging/snap/snapcraft.yaml with source: $SNAPCRAFT_ROOT/..
However, I don't think $SNAPCRAFT_ROOT is the perfect name.
Maybe, we could use a variable for cwd, the directory where snapcraft is called from.
That way we could have /home/elopio/ project/ snap/snapcraft. yaml with source: $SNAPCRAFT_ROOT project/ packaging/ snap/snapcraft. yaml with source: $SNAPCRAFT_ROOT/..
and /home/elopio/
However, I don't think $SNAPCRAFT_ROOT is the perfect name.