From f9b08b8e609916f970dc5ba2e41c9dbe1897240a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 31 Oct 2003 13:05:21 +0000 Subject: [PATCH] Patch #785689: Use basename in usage. Backported to 2.3. --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 8ccc2033c9d..e53aa1611c3 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -2167,7 +2167,7 @@ def cli(): print value except (getopt.error, BadUsage): - cmd = sys.argv[0] + cmd = os.path.basename(sys.argv[0]) print """pydoc - the Python documentation tool %s ...