In <d42dnwsq_pa11pffnz2dnuu7-bedn...@giganews.com> Wildman <best_...@yahoo.com> 
writes:

> > Another serious problem with using env in the hash-bang line is that you
> > cannot pass commandline options to the Python executable.

> Not true.  I made a test script with this code:

> #!/usr/bin/env python
> import sys
> print sys.argv

> Then I ran it:

> ~$ python test.py argument1 argument2
> ['test.py', 'argument1', 'argument2']

Options cannot be passed *on the hash-bang line*.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gor...@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to