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