> 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