Restarting a Python Application
kelvie at ieee.org
Sun Jul 8 00:11:11 CEST 2007
Ugh.. this would be a repost for the OP, but I forgot to hit "reply to
This should do it:
Not sure how portable that statement is, though.
On 7/3/07, kyosohma at gmail.com <kyosohma at gmail.com> wrote:
> 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 restart itself. Does anyone know how to
> accomplish this in Python?
> Here is what I tried:
> exePath = os.path.join(os.getcwd(), 'myprogram.exe')
> This didn't work. It closed the program, but another instance did not
> Tips would be appreciated.
More information about the Python-list