I have been asked to set up pandoc for an HPC cluster and while most of the set up has gone fairly smoothly, we are having issues resolving the path to the templates and other "data" files -- they resolve to the build directory not the install directory.
When we test with the --data-dir argument it works fine, but we would like to be able to set it 'once and forever'. In the man pages/user guide it looks as though there is an option to set an environment variable ($DATADIR) that would do the same thing as the command line argument, but we have not been able to get that to work.
Is the $DATADIR environment variable supported? Is there a better way to 'once and forever' point to the correct data directory?
Thank you for any hints and pointers.