compile shebang into pyc file

Fredrik Lundh fredrik at pythonware.com
Wed Apr 27 11:20:46 EDT 2005


Michael Soulier wrote:

> > Is there some reason why you want to run the .pyc file, rather than the
> > .py file? If you start the script with
> 
> a. It's more efficient, since the code doesn't need to be compiled
> before it's run.
> b. What if you want to ship closed-source?

    #!/usr/bin/env python
    import app

hardly qualifies as "hard to compile" or "open source"

</F>




More information about the Python-list mailing list