views:

348

answers:

2

Windows Task Manager (Processes Tab) lists all the running processes.

the image name for python scripts is always python.exe (or pythonw.exe or the name of the python interpreter).

it there a nice way to change the image name corresponding to a python script? (I mean other than changing the name of the python interpreter)

+1  A: 

You could use py2exe to turn your Python program into a self-contained executable with whatever name that you choose to give it.

Adam Crossland
That's just a terrible hack.
Glenn Maynard
Why is using py2exe a hack?
Adam Crossland
A: 

There's no nice way that I've found to change the name of a running process in Windows, but you can create small .exe stubs rather than resorting to py2exe packaging or copying the interpreter:

http://effbot.org/zone/exemaker.htm

The exe stub uses its own module name to calculate the .py script invoked. You should be able to use an exe resource editor to change the icon.

Kevin Edwards