How to set program name in Python : success

aspineux aspineux at gmail.com
Sun Apr 8 06:49:28 EDT 2007


here is the trick I found

#  ( exec  -a "pgm.py" python < pgm.py ) &
# ps ax | grep pgm.py
22334 pts/2    S+     0:00 pgm.py

this solution works on linux and probably all BSD too,
but don't let specify any arguments.

If someone know a better solution ....




More information about the Python-list mailing list