We insert hard-coded python paths where we should not (app crash/nonstart)
When testing why gnome-password failed on my mobian pinephone (Debian testing) when using a .deb artifact from our CI (Debian sid), I discovered an ImportError from:
"import gi" with a "/usr/lib/python3.9/contextlib.py:7" Canot import name GenericAlias from types (/usr/lib/python3.8/types.py)
Note, that it is mixing python3.8 and python3.9 here. And indeed meson inserted into our /usr/bin/gnome-passwordsafe the following lines
sys.path.insert(1, "/usr/lib/python3.9")
(and one about /usr/lib/python3.9/site-packages I think)
Hardcoding python library paths to be queried based on those paths locations on the build machine seems to be a bad thing. Unneeded at best, and harmful at worst. Removing those 2 lines let me start gnome-password just fine.
We should see if we really want to insert hardcoded absolute path as sys.path lines into our binary, I don't think so.