paul j3 added the comment: The relevant code is: prog = _os.path.basename(_sys.argv[0]) ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20970> _______________________________________