I am writing a preprocessor, to look up words from a custom inset in a dictionary, write the result to a file and include it at the end of each page. I enabled -enable-write18 and tested it at the command line, LyX however moves the compilation to a temporary directory (on Windows7) from which I can access my preprocessor script (which I keep together with the lyx file) only via an absolute path.
Does LyX store the path to the current file somewhere accessible from Tex code? Sean