Skip to content

Instantly share code, notes, and snippets.

@ferd
Created June 11, 2016 22:05
Show Gist options
  • Save ferd/725e7af253cc751298b1f7b3bc109e95 to your computer and use it in GitHub Desktop.
Save ferd/725e7af253cc751298b1f7b3bc109e95 to your computer and use it in GitHub Desktop.
1> application:set_env(tools, file_util_search_methods, bacon).
ok
2> application:ensure_all_started(tools).
{ok,[tools]}
3> application:get_all_env(tools).
[{file_util_search_methods,[{[],[]},
{"ebin","esrc"},
{"ebin","src"}]},
{included_applications,[]}]
vs.
1> application:load(tools).
ok
2> application:set_env(tools, file_util_search_methods, bacon).
ok
3> application:ensure_all_started(tools).
{ok,[tools]}
4> application:get_all_env(tools).
[{file_util_search_methods,bacon},
{included_applications,[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment