nmlc writes 'parsetab.py' in working directory
When running nmlc, the Ply parser writes parsetab.py in the working directory.
$ cd regression # remove parsetab.py if it exists $ make 001_action8 $ ls parsetab.py
#1 Updated by Hirundo over 7 years ago
Regenerating parsetab.py each time (as attached patch does) impacts performance, I'd rather avoid that if possible.
From PLY documentation:
To change the directory in which the parsetab.py file (and other output files) are written, use: yacc.yacc(tabmodule="foo",outputdir="somedirectory")
Question is, what is the right place (tm) - if any - to write such a file?
#2 Updated by yexo about 7 years ago
For an installed version of nml it'd be best of parsetab.py was generated at install time and installed like the other file. That way it never has to be regenerated.
For a non-installed version of nml there are three choices: directory where nmlc is located, $HOME/.nml/ or working directory.