En Sat, 28 Feb 2009 04:44:28 -0200, <zaheer.ag...@gmail.com> escribió:

One question off the topic.,

Usually it's better to post a separate message.

How to create a .pyz file. I have python project that has some modules
in it , I want to create a zip file so that I can use it as we use
java jar file
Like I want to do a
mypyFiles.pyz --sendFile C:\\testFile
I currently have a module that does this when run as single python
module, but I want to do same this using a zip file which will  have
some other modules within it.

Just put all your modules inside the zip, and create a __main__.py file. Execute it using:

        python foo.zip

See http://docs.python.org/using/cmdline.html#command-line

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to