[Pythonmac-SIG] Building apps with hardcoded options using py2app

2006-04-17 Thread Mike Covill
I would like to package up different versions of our application  
which we normally specify on the command line with different command  
line options.  For
example:
myapp.py
or
myapp.py -sim

Can I use py2app to make different 'double-clickable' applications  
that would give us the same functionality?  If so, how?  Where would  
I specify the options?

Or should I make different versions of my main.py file for each  
configuration.

Thanks,
Mike

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Building apps with hardcoded options using py2app

2006-04-17 Thread Nicholas Riley
On Mon, Apr 17, 2006 at 04:59:21PM -0400, Mike Covill wrote:
 I would like to package up different versions of our application  
 which we normally specify on the command line with different command  
 line options.  For
 example:
 myapp.py
 or
 myapp.py -sim
 
 Can I use py2app to make different 'double-clickable' applications  
 that would give us the same functionality?  If so, how?  Where would  
 I specify the options?

Use -argv-inject.  python setup.py py2app --help for more information.

-- 
Nicholas Riley [EMAIL PROTECTED] | http://www.uiuc.edu/ph/www/njriley
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig