Re: Restarting a Python Application

2007-07-07 Thread Steve Holden
Peter Decker wrote: > On 7/7/07, Kelvie Wong <[EMAIL PROTECTED]> wrote: >> Ugh.. this would be a repost for the OP, but I forgot to hit "reply to >> all" again. > > > Imagine if you wrote applications where the default behavior did not > do what was needed 99% of the time: how long do you think y

Re: Restarting a Python Application

2007-07-07 Thread Peter Decker
On 7/7/07, Kelvie Wong <[EMAIL PROTECTED]> wrote: > Ugh.. this would be a repost for the OP, but I forgot to hit "reply to > all" again. Imagine if you wrote applications where the default behavior did not do what was needed 99% of the time: how long do you think you'd be in business? The defaul

Re: Restarting a Python Application

2007-07-07 Thread Kelvie Wong
Ugh.. this would be a repost for the OP, but I forgot to hit "reply to all" again. This should do it: os.execv(sys.argv[0], sys.argv) Not sure how portable that statement is, though. On 7/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I packaged up an application I am developing

Re: Restarting a Python Application

2007-07-07 Thread Matimus
> Actually I am using wxPython for a GUI front-end. Thus, it is already > in a class. I am not sure how to apply your idea to a program that is > already running in an infinite event loop. I don't know wxPython, but I was able to grab an example program and adapt it to do what I think you are ask

Re: Restarting a Python Application

2007-07-06 Thread kyosohma
On Jul 3, 5:00 pm, Matimus <[EMAIL PROTECTED]> wrote: > On Jul 3, 2:27 pm, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > I packaged up an application I am developing into an executable. In > > the application, it has user configurable options. I would like a way > > to restart the application so tha

Re: Restarting a Python Application

2007-07-03 Thread Matimus
On Jul 3, 2:27 pm, [EMAIL PROTECTED] wrote: > Hi, > > I packaged up an application I am developing into an executable. In > the application, it has user configurable options. I would like a way > to restart the application so that the new options the user chooses > can be applied. Firefox can resta