Optimize flag on shebang line

Discussion in 'Python' started by Andres Corrada-Emmanuel, Dec 9, 2003.

  1. 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
     
    Andres Corrada-Emmanuel, Dec 9, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Holden

    Re: Optimize flag question

    Steve Holden, Feb 25, 2006, in forum: Python
    Replies:
    3
    Views:
    254
    Felipe Almeida Lessa
    Feb 26, 2006
  2. Timothy Madden
    Replies:
    4
    Views:
    2,097
    ryles
    Sep 7, 2009
  3. Blaine
    Replies:
    11
    Views:
    1,558
    Blaine
    Sep 17, 2009
  4. Johnnie Lieske
    Replies:
    6
    Views:
    153
    Johnnie Lieske
    Nov 28, 2008
  5. Prachi
    Replies:
    5
    Views:
    137
    Sherm Pendley
    May 17, 2005
Loading...

Share This Page