Find out erlang path

Sean Hinde sean.hinde@REDACTED
Mon Jan 16 19:28:03 CET 2006


Hi,

code:root_dir(). should give you what you need. If not then there are  
other related functions in the code module.

Sean

On 16 Jan 2006, at 18:04, Matheus Degiovani wrote:

> Hello,
>
> Sorry for the simple question, I'm trying to build a release tar  
> that includes the runtime system. I figured I have to add the  
> {erts, Dir} tuple to the options when building the tar, but I can't  
> seem to find any function that returns the current running erlang  
> base directory (i.e. the base directory where the current version  
> of Erlang was started).
>
> The only way to get it (so far, as I can think) is to read from the  
> win32 registry, but that seems so cumbersome. Also,  
> "erl_prim_loader:get_path()" returns a list of paths to  
> (respectively) kernel and stdlib, but not directly to erlang...
>
> Thanks.
> -- 
> Matheus Degiovani
> matheus@REDACTED
> http://www.tilt.net
> http://clubtilt.net
>
> "Nem mesmo os sábios conseguem enxergar os dois lados" - Gandalf em  
> O Senhor dos Anéis de JRR Tolkien.




More information about the erlang-questions mailing list