compile as exe with arguments

dirknbr dirknbr at gmail.com
Mon Jun 28 06:40:54 EDT 2010


On Jun 28, 11:26 am, "Martin P. Hellwig" <martin.hell... at dcuktec.org>
wrote:
> On 06/28/10 11:18, dirknbr wrote:
>
> > I want to compile as an exe using py2exe but the function should take
> > arguments. How would I do this? Currently my exe runs (no errors) but
> > nothing happens.
>
> I am not sure if I understand your question correctly, have you used a
> module like optparse and it doesn't do anything? It works for me the
> last time I used it.
>
> --
> mph

Aha that might be it, I had a look at http://docs.python.org/library/optparse.html
How do you integrate (options, args) = parser.parse_args()
with our function?



More information about the Python-list mailing list