[RFC] ERL-1323 - Make Erlang/OTP work from any installation directory by removing the need for an absolute path

Michael Truog mjtruog@REDACTED
Wed Sep 9 00:14:42 CEST 2020


On 9/8/20 2:06 PM, Jérôme de Bretagne wrote:
> There are some ways to find the absolute path of a script from within
> itself, including following symlinks, such as this one (with a proper
> formatting in the bug tracker):
Hi Jérôme,

If you had an escript print the result of code:root_dir(), that should 
be the simplest way of getting the root path of the Erlang installation 
that was used to start the escript.

Best Regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200908/616747af/attachment.htm>


More information about the erlang-questions mailing list