Code

lastCommand seems to have been meant rather than token, since token would be numeric...
authormental <mental@users.sourceforge.net>
Sat, 12 Aug 2006 05:31:30 +0000 (05:31 +0000)
committermental <mental@users.sourceforge.net>
Sat, 12 Aug 2006 05:31:30 +0000 (05:31 +0000)
share/extensions/simplepath.py

index bfca242f6bc3faa366f7f0d83ec691dfeb90b5dc..09e882a37ac0b939c164ff3d8b711f3447c05843 100755 (executable)
@@ -102,8 +102,8 @@ def parsePath(d):
             #use last command's implicit next command
             needParam = False
             if lastCommand:
-                if token.isupper():
-                    command = pathdefs[lastCommand.upper()][0]
+                if lastCommand.isupper():
+                    command = pathdefs[lastCommand][0]
                 else:
                     command = pathdefs[lastCommand.upper()][0].lower()
             else: