aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-03-03 11:51:25 +0100
committerGitHub <[email protected]>2017-03-03 11:51:25 +0100
commit0438c6c2c5c4a447ab3a47a443968488a0d835eb (patch)
tree09ec3bd3f4a66ab2a9cdf3d1e468352763d4e228 /lib/tools
parent960b4e63c8fcfa8577ac877464e300959f20db12 (diff)
parent209985d1eca6389e363c4dc0dac7c91f9415de28 (diff)
downloadotp-0438c6c2c5c4a447ab3a47a443968488a0d835eb.tar.gz
otp-0438c6c2c5c4a447ab3a47a443968488a0d835eb.tar.bz2
otp-0438c6c2c5c4a447ab3a47a443968488a0d835eb.zip
Merge pull request #1361 from bjorng/bjorn/home-directory/ERL-161/OTP-14249
Use a portable way to lookup the home directory
Diffstat (limited to 'lib/tools')
-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}),