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

Ned Deily report at bugs.python.org
Mon Jul 11 22:39:28 EDT 2016


Ned Deily added the comment:

@blarsen, and there's something strange about your example.  '-m' won't work with a real python executable, presumably you meant '-c'.  And judging from the paths involved, I'm guessing you are using MacPorts on OS X.  With either MacPorts or any other OS X framework build, you wouldn't see results like that with -c.

 ../bin/python3.5 -c 'import sys; print(sys.executable)'
/opt/local/bin/python3.5
../bin/python2.7 -c 'import sys; print(sys.executable)'
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

So I'm guessing what's in ../bin/python3.7 and ../bin/python3.5 is something other than the normal python bootstrap binaries.

----------
nosy: +ned.deily

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13402>
_______________________________________


More information about the docs mailing list