Steve Dower added the comment:

You're right, though I disagree with the fix as that would cause the process 
filename to be ignored.

A correct fix would check whether the name has been set explicitly and if so, 
either use it as-is (if absolute) or get the actual name and use its directory 
(since there's no point searching PATH as we'll likely just find some other 
executable and hence not be able to initialize).

As this is a subtle change in behaviour, we should only do it for 3.7. For 3.6 
and earlier I'd suggest naming your executable the name that you'd like it to 
be, as that will work fine in this case and anywhere else we assume that the 
process name is the name of the process. (The fact that the behaviour is wrong 
in earlier versions is overridden IMO by the fact that it has been wrong for a 
decade and nobody has complained, and there is a trivial workaround.)

----------
versions:  -Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31349>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to