[RFC] ERL-1323 - Make Erlang/OTP work from any installation directory by removing the need for an absolute path
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):
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions