Executable standalone *.pyc after inserting "#!/usr/bin/python" or other options

epsilon cesmiga at gmail.com
Fri Jan 15 16:25:36 CET 2010

On Jan 15, 8:32 am, schmeii <maxischm... at gmail.com> wrote:
> On Jan 14, 10:55 pm, epsilon <cesm... at gmail.com> wrote:
> > All:
> > I've been playing with "Lua" and found something really cool that I'm
> > unable to do in "Python". With "Lua", a script can be compiled to byte
> > code using "luac" and by adding "#!/usr/bin/lua" at the top of the
> > binary, the byte code becomes a single file executable. After I found
> > this trick, I ran back to "Python" to give it a try.  Well...  it
> > didn't work. Is this possible?
> You can't add a string on top of a pyc file but you can add one in a
> zipped file. For an example, seehttp://www.noah.org/wiki/Python_zip_exe


Thanks again and I'm looking at all the options for different
operating system


More information about the Python-list mailing list