[Tutor] defining / calling arguments on a compiled script?

Wayne Werner waynejwerner at gmail.com
Sun Mar 13 22:08:26 CET 2011

On Sun, Mar 13, 2011 at 12:16 PM, Ryan Hussain <ryanh.net at gmail.com> wrote:

> Hello,
> I was wondering if there is a solution to add arguments to a compiled
> python script, compiled with py2exe? For example I would like to do
> something such as running my script named "demo.exe -a". With the -a
> argument I would like to run a function. How can I define arguments in my
> script?

 Have you tried using sys.argv?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110313/afde89fc/attachment.html>

More information about the Tutor mailing list