关于设置路径变量

1> cd(a).
C:/Erlang5.6.4/erl5.6.4/usr
ok


2> cd("D:/Work/sp/apps").
D:/Work/sp/apps
ok

还可以直接在user.home目录中建立.erlang文件,在文件中加入自定义搜索路径:

io:format( " Custom search path added.~n~n " ). 
code:add_patha(
" . " ). 
code:add_pathz(
" /Erlang5.6.4/erlyweb-0.7.1/ebin " ). 
code:add_pathz(
" /Yaws-1.77/include " ).

Technorati 标签: erlang compile path