Optimize flag on shebang line
Andres Corrada-Emamnuel
andres at mamey.com
Wed Dec 10 10:38:55 EST 2003
Okay. Got it to work with the absolute path.
So page 25 of "Python in a Nutshell" needs to qualify its statement that
Unix systems allow:
#! /usr/bin/env python {options}
to something else.
By the way, my use of the -O switch is to encapsulate debugging print
statements under 'if __debug__' construction so having the switch on or not
makes a big difference.
Jp Calderone <exarkun at intarweb.us> wrote in message news:<mailman.5.1071000851.9307.python-list at python.org>...
>
> Typically, you can pass only a single argument to the interpreter. Your
> platform may be silently ignoring the -O. Have you tried with simply
> "#!/path/to/python -O"?
>
> Note that -O hardly does anything, so even if you can't get this working,
> it's not much of a loss.
>
> Jp
>
> --
More information about the Python-list
mailing list