diff options
author | Björn Gustavsson <[email protected]> | 2017-03-03 11:52:10 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-03-03 11:52:10 +0100 |
commit | b14e556b334069ca60b1be1a1ed45374daf8e1fc (patch) | |
tree | 3e6c9c951e5a1e2cdfb459b4c9b6a978c055cd80 /lib/tools/examples/xref_examples.erl | |
parent | e7ec27f781b2db75b7b82903ae73f089a1b3286a (diff) | |
parent | 0438c6c2c5c4a447ab3a47a443968488a0d835eb (diff) | |
download | otp-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.erl | 2 |
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}), |