Why don’t you check for both and use the one that’s available, otherwise print an error. Additionally you could read an env INKSCAPE_BIN and also include that in your checks.
So one could for example do INKSCAPE_BIN=‘distrobox enter arch – inkscape’ python main.py