passing an include path to escript

Wojciech Kaczmarek kaczmarek.w@REDACTED
Thu Sep 10 22:25:31 CEST 2009


Hi!

It there a way to instruct escript where to look for files to be included?
Right now it only seem to accept absolute paths or paths relative to a
lib_dir of an installed library.
It would be good to allow escript to include the files located in a
place relative to where the script is being run.

Real world example:

escript is used to run etap[1] tests in a make test phase. As this is
testing, no files are installed in an erlang tree yet, sadly it's
impossible to use hrl files existing in the source (which would be
installed thus accessible but after the tests pass..). Catch 22, isn't
it?

cheers,
Wojtek

[1] http://github.com/ngerakines/etap/tree/master


More information about the erlang-questions mailing list