Update to ply 2.3
[gem5.git] / ext / ply / test / yacc_badargs.py
index 12075efcc2c8a3edebf6db966912607178ca907e..810e5298a442660afdf7a6fb8614a3385c06316a 100644 (file)
@@ -5,6 +5,8 @@
 # -----------------------------------------------------------------------------
 import sys
 sys.tracebacklimit = 0
+sys.path.insert(0,"..")
+import ply.yacc as yacc
 
 from calclex import tokens
 
@@ -59,7 +61,6 @@ def p_expression_name(t):
 def p_error(t):
     print "Syntax error at '%s'" % t.value
 
-import yacc
 yacc.yacc()