I'm working on a simple update function to add to an existing program. It does a stat check of the source file and then copies the new file if necessary. This is easily accomplished with .py files. I've realized that I need a separate update app to delete a currently running 'exe'. My question is how do you find the path of the file that started the update file. ie, if I write os.startfile(xxx) when xxx starts is there a way to find the path of the original file?
I've been looking through the sys module but havent found anything.