Update to ply 2.3
[gem5.git] / ext / ply / test / yacc_notfunc.py
index f61663d60e1bfaa9254f4f465671e44bc42bd14b..838935509a0d141e05c4e3af9b4ad598764021e8 100644 (file)
@@ -6,6 +6,9 @@
 import sys
 sys.tracebacklimit = 0
 
+sys.path.insert(0,"..")
+import ply.yacc as yacc
+
 from calclex import tokens
 
 # Parsing rules
@@ -57,7 +60,6 @@ def p_expression_name(t):
 def p_error(t):
     print "Syntax error at '%s'" % t.value
 
-import yacc
 yacc.yacc()