[Tutor] defining / calling arguments on a compiled script?
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:
> 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
Have you tried using sys.argv?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor