Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. get_env(OsVar, AppVar) ->
  2. case os:getenv(OsVar) of
  3. false ->
  4. {ok, V} = application:get_env(AppVar),
  5. V;
  6. V -> V
  7. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement