Update to ply 2.3
[gem5.git] / ext / ply / test / lex_token4.py
index d77d1662c07539f863f49331909e745bef98fe00..612ff13c269f1872e1fcd6d69155078e70804ba2 100644 (file)
@@ -2,7 +2,10 @@
 #
 # Bad token name
 
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
 
 tokens = [
     "PLUS",
@@ -18,7 +21,6 @@ t_NUMBER = r'\d+'
 def t_error(t):
     pass
 
-import sys
 sys.tracebacklimit = 0
 
 lex.lex()