开发者

Change process name of Python script

Windows Task Manager lists all running processes in the "Processes" tab. The image name of Python scripts is always python.exe, or pythonw.exe, or the name of the Python interpreter.

I开发者_StackOverflows there a nice way to change the image name of a Python script, other than changing the name of the Python interpreter?


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 with ExeMaker rather than resorting to py2exe packaging or copying the interpreter

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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜