what does this mean....?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Feb 28 09:31:00 CET 2009


En Sat, 28 Feb 2009 04:44:28 -0200, <zaheer.agadi at 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




More information about the Python-list mailing list