check_whence.py: Use a more portable shebang.

Some systems do not have /usr/bin/python3, e.g. Guix System and NixOS.
Look python3 from PATH.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Maxim Cournoyer 2025-01-01 23:48:38 +09:00 committed by Mario Limonciello
parent 89fd8440ad
commit a100ea5520

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import os, re, stat, sys
from io import open