[erlang-questions] Getting an AppSpec at runtime

David Lutz dl-erlang@REDACTED
Fri Jun 26 17:23:58 CEST 2009


Thank you very much, I was sure I was missing something simple.  I was  
blinded by too much focus on application:get_env.

D.L.

On Jun 25, 2009, at 10:51 PM, Ulf Wiger wrote:

> 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
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
>



More information about the erlang-questions mailing list