The documentation of sys.executable indicates that this is the path to the python executable. It is actually the current running executable which may be python.exe. If the python C API is being used, this will report the executable which is embedding the python interpreter.
Senior Software Engineer
Altair | Nasdaq: ALTR
firstname.lastname@example.org | altair.com
This message is a private communication intended only for the use of the addressee and may contain information that is PROPRIETARY and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify the sender by replying to this message. Thank you.