Created
September 11, 2012 09:24
-
-
Save takscape/3697174 to your computer and use it in GitHub Desktop.
.erlang example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
BaseDir = "C:/opt/erllibs", | |
lists:foreach( | |
fun(Dir) -> | |
Ebin = filename:join([BaseDir, Dir, "ebin"]), | |
case filelib:is_dir(Ebin) of | |
true -> code:add_patha(Ebin); | |
false -> ok | |
end | |
end, | |
case file:list_dir(BaseDir) of | |
{ok, SubDirs} -> SubDirs; | |
_ -> [] | |
end | |
) | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you write "money denomination" code in erlang Language ?