selectel/tempo — pull request #3 by efine (2012-08-08 01:06:57+00:00)
Title: Convert ?MODULE to list when used in filename:join

I copied your NIF init/0 code, and when I ran my code through dialyzer, it got an error:

esu_comms.erl:44: The call filename:join(PrivDir::binary() | string(),'esu_comms')
breaks the contract (Name1,Name2) -> file:filename() when is_subtype(Name1,file:filename()),
is_subtype(Name2,file:filename())

Turns out that there was a filename:join(Foo, ?MODULE), but ?MODULE is an atom. This is the same fix I applied to my code.