wow yoo wow yoo - 1 year ago 81
Python Question

What does 'Python executable' mean?

I'm writting something about 'sys.prefix', related with PEP405.
What does 'Python executable' mean in this specification?

This PEP proposes to add a new first step to this search. If a pyvenv.cfg file is found either adjacent to the Python executable or one directory above it (if the executable is a symlink, it is not dereferenced), this file is scanned for lines of the form key = value . ...

Answer Source

The "Python executable" in Python documentation and specifications is either the python binary itself or a symlink to the binary. The exception is sys.executable, which always returns the executable that was used to invoke the interpreter even though the documentation states "executable binary".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download