Skip to content

Commit

Permalink
add outputdir for yacc parser generation to avoid permission denied
Browse files Browse the repository at this point in the history
  • Loading branch information
frankobe committed Jun 9, 2017
1 parent 34df5f5 commit 4b1f4e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flanker/addresslib/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b1f4e8

Please sign in to comment.