[python-win32] better way to get current process's name

Mark Hammond mhammond at skippinet.com.au
Thu Feb 22 12:18:10 CET 2007


> is there an easier way to get the name of current process?

It depends on what you mean by 'name'.  Either 'sys.executable' or
'win32api.GetModuleFileName(0)' should give the same(-ish) result as Tim's
script in most cases.

Mark



More information about the Python-win32 mailing list