[Python-Dev] PEP397 no command line options to python?

PJ Eby pje at telecommunity.com
Tue Oct 18 02:36:13 CEST 2011


On Mon, Oct 17, 2011 at 8:00 PM, Mark Hammond <skippy.hammond at gmail.com>wrote:

> On 18/10/2011 3:24 AM, PJ Eby wrote:
>
>> What about -S (no site.py) and -E (no environment)?  These are needed
>> for secure setuid scripts on *nix; I don't know how often they'd be used
>> in practice on Windows.  (Basically, they let you isolate a script's
>> effective sys.path; there may be some use case overlap with virtual envs.
>>
>
> It is worth pointing out that options can be specified directly in the
> shebang line - eg, a line like "#! /usr/bin/python -S" in a foo.py works as
> expected.


Ah, ok.  Never mind, then.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20111017/18909b44/attachment.html>


More information about the Python-Dev mailing list