[erlang-questions] Path of the current module

Bengt Kleberg bengt.kleberg@REDACTED
Tue Feb 3 10:56:35 CET 2009


Greetings,

You might want to use code:is_loaded/1
(http://erlang.org/doc/man/code.html), which will return {file, Loaded}
| false, where Loaded = Absname | preloaded | cover_compiled (you want
Absname).

The current module is ?MODULE.


bengt

On Tue, 2009-02-03 at 20:33 +1100, Edward Stow wrote:
> Hi
> 
> 
> My question simple, but I could not find the answer:  What function
> will return the path of the currently executing module?
> 
> Thanks
> 




More information about the erlang-questions mailing list