Optimize flag on shebang line

Andres Corrada-Emmanuel corrada at dandenong.cs.umass.edu
Tue Dec 9 14:02:03 EST 2003


Hello,

Does the optimize flag work on the shebang line of UNIX systems? I've
tried to execute a script on a Solaris system with a shebang line of the
form:

#! /usr/bin/env python -O

and it does not recognize the flag but

python -O <script> <args>

does what I expect on the command line.

Andres Corrada-Emmanuel
Senior Research Fellow
Center for Intelligent Information Retrieval
University of Massachusetts, Amherst






More information about the Python-list mailing list