CORD-2247: Fix temporary file issue in xproto compilation
Change-Id: I4931a99686bdf0a3b9339a7ec139cc5b01ea75ab
diff --git a/lib/xos-genx/xosgenx/jinja2_extensions/fol2.py b/lib/xos-genx/xosgenx/jinja2_extensions/fol2.py
index db98713..3042e37 100644
--- a/lib/xos-genx/xosgenx/jinja2_extensions/fol2.py
+++ b/lib/xos-genx/xosgenx/jinja2_extensions/fol2.py
@@ -683,7 +683,7 @@
else: inp+=inp_line
fol_lexer = lex.lex(module=FOLLexer())
- fol_parser = yacc.yacc(module=FOLParser(), start='goal')
+ fol_parser = yacc.yacc(module=FOLParser(), start='goal', outputdir='/tmp', debug=0)
val = fol_parser.parse(inp, lexer=fol_lexer)
a = xproto_fol_to_python_test('pol', val, 'output', 'Test')
diff --git a/lib/xos-genx/xosgenx/proto2xproto.py b/lib/xos-genx/xosgenx/proto2xproto.py
index 964ff15..f3acc23 100644
--- a/lib/xos-genx/xosgenx/proto2xproto.py
+++ b/lib/xos-genx/xosgenx/proto2xproto.py
@@ -70,7 +70,7 @@
class Proto2XProto(Visitor):
fol_lexer = lex.lex(module=FOLLexer())
- fol_parser = yacc.yacc(module=FOLParser(), start='goal')
+ fol_parser = yacc.yacc(module=FOLParser(), start='goal', debug=0, outputdir='/tmp')
def __init__(self):
super(Proto2XProto, self).__init__()