From d5c57e162406d0f48792172efa39437ba0401ace Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 1 Apr 1993 20:46:40 +0000 Subject: [PATCH] Microfixes --- Demo/scripts/eqfix.py | 4 ++-- Tools/scripts/methfix.py | 2 +- Tools/scripts/mkreal.py | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Demo/scripts/eqfix.py b/Demo/scripts/eqfix.py index 49e37041b03..74b5536ea83 100755 --- a/Demo/scripts/eqfix.py +++ b/Demo/scripts/eqfix.py @@ -1,5 +1,5 @@ #! /ufs/guido/bin/sgi/python -#! /usr/local/python +#! /usr/local/bin/python # Fix Python source files to use the new equality test operator, i.e., # if x = y: ... @@ -42,7 +42,7 @@ rep = sys.stdout.write def main(): bad = 0 if not sys.argv[1:]: # No arguments - err('usage: ' + argv[0] + ' file-or-directory ...\n') + err('usage: ' + sys.argv[0] + ' file-or-directory ...\n') sys.exit(2) for arg in sys.argv[1:]: if os.path.isdir(arg): diff --git a/Tools/scripts/methfix.py b/Tools/scripts/methfix.py index 3d6d4f101cf..b7eb442431b 100755 --- a/Tools/scripts/methfix.py +++ b/Tools/scripts/methfix.py @@ -40,7 +40,7 @@ rep = sys.stdout.write def main(): bad = 0 if not sys.argv[1:]: # No arguments - err('usage: ' + argv[0] + ' file-or-directory ...\n') + err('usage: ' + sys.argv[0] + ' file-or-directory ...\n') sys.exit(2) for arg in sys.argv[1:]: if os.path.isdir(arg): diff --git a/Tools/scripts/mkreal.py b/Tools/scripts/mkreal.py index e01b35d65a8..bc4dd1300a1 100755 --- a/Tools/scripts/mkreal.py +++ b/Tools/scripts/mkreal.py @@ -1,4 +1,4 @@ -#! /usr/local/python +#! /usr/local/bin/python # mkreal # @@ -45,6 +45,7 @@ def mkrealdir(name): def main(): sys.stdout = sys.stderr progname = os.path.basename(sys.argv[0]) + if progname == '-c': progname = 'mkreal' args = sys.argv[1:] if not args: print 'usage:', progname, 'path ...'