I have a python-based GTK application that loads several modules. It is run from the (linux) terminal like so:
./myscript.py --some-flag setting
UPDATE - of the above answer with some example for future reference
I have runme.sh
#!/bin/bash
kill -9 server.py
python /home/sun/workspace/c/src/server.py &
And i have server.py where i need to restart the application itself, so i had:
os.system('runme.sh')
but that did not restart the application itself by following runme.sh, so when i used this way:
os.execl('runme.sh', '')
Then i was able to restart itself