From 4b1f4e8793c3b77b511af22510ea802bdcd4bf7f Mon Sep 17 00:00:00 2001 From: frankobe Date: Fri, 9 Jun 2017 14:27:29 -0700 Subject: [PATCH] add outputdir for yacc parser generation to avoid permission denied --- flanker/addresslib/parser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flanker/addresslib/parser.py b/flanker/addresslib/parser.py index 525b72d8..a5081af6 100644 --- a/flanker/addresslib/parser.py +++ b/flanker/addresslib/parser.py @@ -159,23 +159,23 @@ def p_error(p): log.info('building mailbox parser') mailbox_parser = yacc.yacc( - start='mailbox', errorlog=log, debug=False) + start='mailbox', errorlog=log, outputdir='/etc/inbox/') log.info('building addr_spec parser') addr_spec_parser = yacc.yacc( - start='addr_spec', errorlog=log, debug=False) + start='addr_spec', errorlog=log, outputdir='/etc/inbox/') log.info('building url parser') url_parser = yacc.yacc( - start='url', errorlog=log, debug=False) + start='url', errorlog=log, outputdir='/etc/inbox/') log.info('building mailbox_or_url parser') mailbox_or_url_parser = yacc.yacc( - start='mailbox_or_url', errorlog=log, debug=False) + start='mailbox_or_url', errorlog=log, outputdir='/etc/inbox/') log.info('building mailbox_or_url_list parser') mailbox_or_url_list_parser = yacc.yacc( - start='mailbox_or_url_list', errorlog=log, debug=False) + start='mailbox_or_url_list', errorlog=log, outputdir='/etc/inbox/') # Interactive prompt for easy debugging