Find full path of the Python interpreter (Python executable)? - Stack Overflow - You can get the answer to “which python” from within python via sys.executable … script.sh#!/usr/bin/env bash