Re: [RFC] ERL-1323 - Make Erlang/OTP work from any installation directory by removing the need for an absolute path
Michael Truog <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <[email protected]> |
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