Update to ply 2.3
[gem5.git] / ext / ply / test / lex_token3.py
index 909f9180d76b568753abfdbc6a676a989d8eeb9a..27ce9476d0b07e1357323e86d6930ab20159ad1e 100644 (file)
@@ -2,7 +2,10 @@
 #
 # tokens is right type, but is missing a token for one rule
 
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
 
 tokens = [
     "PLUS",
@@ -16,7 +19,7 @@ t_NUMBER = r'\d+'
 def t_error(t):
     pass
 
-import sys
+
 sys.tracebacklimit = 0
 
 lex.lex()