Change process name of Python script

后端 未结 2 1379
情深已故
情深已故 2021-02-20 06:53

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 th

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-20 07:41

    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.

提交回复
热议问题