[Python-ideas] pythonv / Python path
phd at phd.pp.ru
Sun Oct 24 17:40:05 CEST 2010
On Sat, Oct 23, 2010 at 05:12:35PM -0700, Brett Cannon wrote:
> On Sat, Oct 23, 2010 at 15:16, Ian Bicking <ianb at colorstudy.com> wrote:
> > #! doesn't work with a Python target, otherwise it would be easy to
> > implement in Python. #! is awful.
> As in a #! can't target a Python script that has been chmod'ed to be executable?
It also handles parameters in strange ways. One can write
#!/usr/bin/env pytnon -O
Some operating systems understand that, some ignore -O completely, but
most OSes interpret "python -O" as one parameter and emit
"/usr/bin/env: python -O: No such file or directory" error.
Oleg Broytman http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas