Search code examples
erlangmnesia

Erlang: specifying a working directory for mnesia?


How do I specify a working directory for mnesia without resorting to passing the "dir" parameter on the command-line?

In other words, can I specify a "working directory" for mnesia just before calling `mnesia:start()' ?


Solution

  • application:set_env(mnesia, dir, Dir).