wow yoo
wow yoo

Reputation: 895

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 . ...

Upvotes: 0

Views: 2117

Answers (2)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799082

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".

Upvotes: 2

sconfluentus
sconfluentus

Reputation: 4993

It just means a python script which you can call in some manner. That pyvenv is a virtual environment created by python.

Upvotes: 1

Related Questions