Possible Duplicate:
how can i get the executable's current directory in py2exe?
Is there a way to get the path to the executable file currently running with py2exe? For example if I had an executable generated with py2exe stored in C:\Users\Desktop\John\myapp.exe, how can I get this path from within myapp.exe in Python in Wondows?
Thank you for any help in advance - I really appreciate it.