Re: [Pythonmac-SIG] py2app run errors

2006-08-10 Thread Bob Ippolito
On Aug 10, 2006, at 4:24 PM, William Kyngesburye wrote: > On Aug 10, 2006, at 5:26 PM, Bob Ippolito wrote: > >> argv[0] and the name of the script aren't necessarily the same thing. >> __file__ is the file of the script (all modules have a __file__ >> attribute). >> > Like I said, just getting my

Re: [Pythonmac-SIG] py2app run errors

2006-08-10 Thread William Kyngesburye
On Aug 10, 2006, at 5:26 PM, Bob Ippolito wrote: > argv[0] and the name of the script aren't necessarily the same thing. > __file__ is the file of the script (all modules have a __file__ > attribute). > Like I said, just getting my feet wet. os.execlp('open', 'open', '-a', 'Terminal.app', sh

Re: [Pythonmac-SIG] py2app run errors

2006-08-10 Thread Bob Ippolito
On 8/10/06, William Kyngesburye <[EMAIL PROTECTED]> wrote: > On Aug 10, 2006, at 3:07 PM, Bob Ippolito wrote: > > > > > On Aug 10, 2006, at 12:25 PM, William Kyngesburye wrote: > > > >> I have a python script that sets a couple environment vars and runs a > >> shell script in a Terminal window. It

Re: [Pythonmac-SIG] py2app run errors

2006-08-10 Thread Ronald Oussoren
On 10-aug-2006, at 13:42, William Kyngesburye wrote: >>> >>> base = os.path.dirname(sys.argv[0]) >> >> This should probably be os.path.dirname(__file__) >> > hmm, none of the reference I have mention this one. I guess it means > the same as argv[0] - the path/name of the script? __file__ is the

Re: [Pythonmac-SIG] py2app run errors

2006-08-10 Thread William Kyngesburye
On Aug 10, 2006, at 3:07 PM, Bob Ippolito wrote: > > On Aug 10, 2006, at 12:25 PM, William Kyngesburye wrote: > >> I have a python script that sets a couple environment vars and runs a >> shell script in a Terminal window. It works when run from a Terminal >> with 'python doshell.py'. But when p

Re: [Pythonmac-SIG] py2app run errors

2006-08-10 Thread Bob Ippolito
On Aug 10, 2006, at 12:25 PM, William Kyngesburye wrote: > I have a python script that sets a couple environment vars and runs a > shell script in a Terminal window. It works when run from a Terminal > with 'python doshell.py'. But when packaged into an app with py2app > I get errors. > > Here'

[Pythonmac-SIG] py2app run errors

2006-08-10 Thread William Kyngesburye
I have a python script that sets a couple environment vars and runs a shell script in a Terminal window. It works when run from a Terminal with 'python doshell.py'. But when packaged into an app with py2app I get errors. Here's a simplified version (doshell.py): #!/usr/bin/env python imp