[erlang-questions] user home.dir

Fred Hebert mononcqc@REDACTED
Wed May 16 02:23:57 CEST 2012


Use:

{ok, [[Home]]} = init:get_argument(home)

and Home will be the user's home directory.

On Tue May 15 17:59:05 2012, eigenfunction wrote:
>
> Hi guys,
> How do i retrieve the user home directory in erlang? I mean the os-
> independant version of os:getenv("HOME") or os:getenv("HOMEPATH") .
>
> Is there such thing?
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list