logo       

Re: Search path for applications: msg#00334

lang.erlang.general

Subject: Re: Search path for applications

Inswitch Solutions - Erlang Evaluation wrote:
Hi,
From anywhere I can run erl.exe and execute application:start(mnesia)
I would like to have my applications under c:/myRoot/lib and also execute application:start(myapplication).

this seems to indicate that you are running windows. i do not have access to windows, so please take my advice with a large grain of salt.


By default all Erlang applications are searched under lib subdirectory of Erlang installation root directory.
Does someone know how to add another search path for applications?
Should I add something to my start.script?

if you are in an erlang program already, you have
code:add_patha("c:/myRoot")

if you are starting erlang you have
erl -pa c:/myRoot


bengt



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise