]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Microfixes
authorGuido van Rossum <guido@python.org>
Thu, 1 Apr 1993 20:46:40 +0000 (20:46 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 1 Apr 1993 20:46:40 +0000 (20:46 +0000)
Demo/scripts/eqfix.py
Tools/scripts/methfix.py
Tools/scripts/mkreal.py

index 49e37041b03c81c9571602ae715d2a7279b40049..74b5536ea8350f94f861fb62bac31f4791cab158 100755 (executable)
@@ -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):
index 3d6d4f101cfacbefc7ac88554a05d45d2ec59587..b7eb442431b28264990ac89f28f6541f56436c83 100755 (executable)
@@ -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):
index e01b35d65a8b0e916eaa8219a0412884d3e8ce62..bc4dd1300a1231d2682a1e81d057854e106f8509 100755 (executable)
@@ -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 ...'