Run pyc file without specifying python path ?

Christian Heimes lists at cheimes.de
Thu Jul 30 05:27:51 EDT 2009


Barak, Ron wrote:
> Your solution sort of defeats my intended purpose (sorry for not divulging my 'hidden agenda').
> I wanted my application to "hide" the fact that it's a python script, and look as much as possible like it's a compiled program.
> The reason I don't just give my user a py file, is that I don't want a cleaver user to change the innards of the script.
> On the other hand, I don't want to make a compiled (freezed?) version of the application, because it'll grow the resulting file significantly, and I don't have the experience to know how it will run on different Linuxes.

Ask Google for binfmt-support. Hint: Each Python version has its own
magic header.

Christian




More information about the Python-list mailing list