[erlang-questions] Setting the proper source in a module compiled via compile:forms
José Valim
jose.valim@REDACTED
Thu Mar 22 19:31:09 CET 2012
Hello everyone,
I am using compile:forms() to compile some forms and return me the binary.
After I load the binary, I can access my code as expected, except the
mymodule:module_info(:compile) returns the wrong source:
> mymodule:module_info(compile)
[{options,[]},{version,"4.8"},{source,"/Users/jose/Work"}]
It seems it is returning my PWD as source. To fix the issue, I have already
tried:
-compile([{source,"real/path"}]).
-file("real/path").
And passing a source option to compile:forms(). None of those worked.
Does anyone know if there an attribute/option I can pass so Erlang will
return the proper source?
Thanks in advance,
*
José Valim
www.plataformatec.com.br
Founder and Lead Developer
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120322/e3462072/attachment.htm>
More information about the erlang-questions
mailing list