While packaging for NixOS, I've found that running non-executable scripts depends on there being a python executable in the $PATH, which may not exist (aside from NixOS, Debian doesn't seem to have it by default either).
Instead, try to use the same executable as the current interpreter, and only if that is unknown do fallback to python.
While packaging for NixOS, I've found that running non-executable scripts depends on there being a
python
executable in the$PATH
, which may not exist (aside from NixOS, Debian doesn't seem to have it by default either).Instead, try to use the same executable as the current interpreter, and only if that is unknown do fallback to
python
.