[docs] [issue13402] Document absoluteness of sys.executable

STINNER Victor report at bugs.python.org
Fri Nov 25 21:04:24 CET 2011

STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> You could also add a test to test_sys ensuring that sys.executable
> is always executable.

And that sys.executable is absolute?

sys.executable is an empty string if sys.argv[0] has been changed and Python is unable to retrieve the real path to the Python executable. See the issue #7774. The fact that sys.executable can be empty should be documented.


Python tracker <report at bugs.python.org>

More information about the docs mailing list