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

2010-01-15 Thread schmeii
On Jan 14, 10:55 pm, epsilon cesm...@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

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

2010-01-15 Thread epsilon
On Jan 15, 8:32 am, schmeii maxischm...@gmail.com wrote: On Jan 14, 10:55 pm, epsilon cesm...@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

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

2010-01-14 Thread epsilon
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

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

2010-01-14 Thread Martin v. Loewis
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

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

2010-01-14 Thread epsilon
On Jan 14, 5:33 pm, Martin v. Loewis mar...@v.loewis.de wrote: 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

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

2010-01-14 Thread Martin v. Loewis
This works great! Do you or anyone else have information on how to do the same thing for Windows and/or Solaris. On Windows, just associate the .pyc extension with Python - the standard installation will already do that. On Solaris, I don't think something like this is supported. Regards,