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

2011-03-13 Thread Alan Gauld
"Ryan Hussain" wrote I was wondering if there is a solution to add arguments to a compiled python script, compiled with py2exe? Assuming you still have the original source code then there is no difference to it being compiled with py2exe than if it weren't You just read the command line argu

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

2011-03-13 Thread Wayne Werner
On Sun, Mar 13, 2011 at 12:16 PM, Ryan Hussain 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

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

2011-03-13 Thread Ryan Hussain
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? -