aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/examples/xref_examples.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-03-03 11:52:10 +0100
committerBjörn Gustavsson <[email protected]>2017-03-03 11:52:10 +0100
commitb14e556b334069ca60b1be1a1ed45374daf8e1fc (patch)
tree3e6c9c951e5a1e2cdfb459b4c9b6a978c055cd80 /lib/tools/examples/xref_examples.erl
parente7ec27f781b2db75b7b82903ae73f089a1b3286a (diff)
parent0438c6c2c5c4a447ab3a47a443968488a0d835eb (diff)
downloadotp-b14e556b334069ca60b1be1a1ed45374daf8e1fc.tar.gz
otp-b14e556b334069ca60b1be1a1ed45374daf8e1fc.tar.bz2
otp-b14e556b334069ca60b1be1a1ed45374daf8e1fc.zip
Merge branch 'maint'
* maint: tools: Use portable lookup of home directory dialyzer, observer: Use portable lookup of home directory
Diffstat (limited to 'lib/tools/examples/xref_examples.erl')
-rw-r--r--lib/tools/examples/xref_examples.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tools/examples/xref_examples.erl b/lib/tools/examples/xref_examples.erl
index 4c082195a2..f7e71c9708 100644
--- a/lib/tools/examples/xref_examples.erl
+++ b/lib/tools/examples/xref_examples.erl
@@ -7,7 +7,7 @@
%% ${HOME}/unused_locals.txt.
script() ->
Root = code:root_dir(),
- Dir = os:getenv("HOME"),
+ {ok,[[Dir]]} = init:get_argument(home),
Server = s,
xref:start(Server),
{ok, _Relname} = xref:add_release(Server, code:lib_dir(), {name,otp}),