[erlang-questions] Getting an AppSpec at runtime
Ulf Wiger
ulf.wiger@REDACTED
Fri Jun 26 07:51:30 CEST 2009
David Lutz wrote:
> Hello,
>
> Is there a way to get the AppSpec for a loaded application at runtime?
>
> I have been reading the docs, especially the application module, but I
> don't see anything that will return a application specification like the
> one in the .app file. I would really like to get at some of the keys
> such as 'modules' and 'registered' at runtime after the application has
> been loaded.
application:get_key(App, Key)
application:get_all_key(App) (sic!)
http://www.erlang.org/doc/apps/kernel/application.html
BR,
Ulf W
--
Ulf Wiger
CTO, Erlang Training & Consulting Ltd
http://www.erlang-consulting.com
More information about the erlang-questions
mailing list