Permalink
Browse files

Fix get environment for $HOME

Use os:getenv/1 instead of os:cmd/1.
  • Loading branch information...
1 parent 31bea81 commit b62fcdc2054100135d5006b92ba40b75d951584c @psyeugenic committed Sep 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/eplot_main.erl
View
@@ -85,7 +85,7 @@ string_to_term(Value) ->
get_config() ->
- Home = os:cmd("echo -n $HOME"),
+ Home = os:getenv("HOME"),
Path = filename:join([Home, ".eplot"]),
File = filename:join([Path, "eplot.config"]),
case file:consult(File) of

0 comments on commit b62fcdc

Please sign in to comment.