Update to ply 2.3
[gem5.git] / ext / ply / test / lex_dup3.py
index 424101823b09dd913ee0540c924c1db502bc9fc6..e17b52059effd7a1fc8997eadcb6ab2ccc93ee80 100644 (file)
@@ -2,7 +2,10 @@
 #
 # Duplicated rule specifiers
 
-import lex
+import sys
+sys.path.insert(0,"..")
+
+import ply.lex as lex
 
 tokens = [
     "PLUS",
@@ -21,7 +24,6 @@ def t_NUMBER(t):
 def t_error(t):
     pass
 
-import sys
 sys.tracebacklimit = 0
 
 lex.lex()