[erlang-questions] Dialyzer HOME quirk
Viacheslav V. Kovalev
kovyl2404@REDACTED
Tue Jun 2 17:25:25 CEST 2015
Hi folks.
When working with dialyzer on windows I've noticed some strange (for
me) behaviour. To find default PLT location dialyzer peeks into the
HOME environment variable, which is... hm... *not always* defined on
windows: https://github.com/erlang/otp/blob/maint/lib/dialyzer/src/dialyzer_plt.erl#L230
Erlexec, for example, knows about this fact:
https://github.com/erlang/otp/blob/41f2a54d9fed232be06a3c4be06779e9455a62b4/erts/etc/common/erlexec.c#L1523
I believe correct way to locate HOME is to use
`init:get_argument(home)`. Does anybody know any reason not to do so?
Why dialyzer use os:getenv("HOME") though?
More information about the erlang-questions
mailing list