get path of python binary that’s executing the script [duplicate] July 15, 2023 by Tarik The path is available in sys.executable.