Message270210
| Author |
blarsen |
| Recipients |
blarsen, dino.viehland, docs@python, eli.bendersky, eric.araujo, eric.snow, flox, petri.lehtinen, pitrou, pjenvey, python-dev, ronaldoussoren, schmir, vstinner |
| Date |
2016年07月11日.22:06:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1468274772.28.0.198358413257.issue13402@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It looks like sys.executable is *not* always an absolute path. In Python 2.7:
$ which python2.7
/opt/local/bin/python2.7
$ cd /opt/local/bin
$ ../bin/python2.7 -m 'import sys; print(sys.executable)'
/opt/local/bin/../bin/python2.7
Also in Python 3.5:
$ which python3.5
/opt/local/bin/python3.5
$ cd /opt/local/bin
$ ../bin/python3.5 -m 'import sys; print(sys.executable)'
/opt/local/bin/../bin/python3.5 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年07月11日 22:06:12 | blarsen | set | recipients:
+ blarsen, ronaldoussoren, pitrou, vstinner, pjenvey, schmir, eric.araujo, dino.viehland, eli.bendersky, flox, docs@python, python-dev, eric.snow, petri.lehtinen |
| 2016年07月11日 22:06:12 | blarsen | set | messageid: <1468274772.28.0.198358413257.issue13402@psf.upfronthosting.co.za> |
| 2016年07月11日 22:06:12 | blarsen | link | issue13402 messages |
| 2016年07月11日 22:06:12 | blarsen | create |
|