Locate the Python interpreter through sys.executable
Locate the Python interpreter through sys.executable

Do not rely on the Python interpreter being called `python`, as that
command does not exist in certain environments (e.g. Debian and NixOS).
Instead, prefer to run scripts with the same executable as the current
interpreter.

kvas-it/pytest-console-scripts