Browse Source

Add init/0

Sina Samavati 11 years ago
parent
commit
9529b959d7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/mad.erl

+ 5 - 0
src/mad.erl

@@ -5,6 +5,7 @@
 -export([compile/1]).
 -export([compile/1]).
 -export([compile_deps/1]).
 -export([compile_deps/1]).
 -export([update_path/1]).
 -export([update_path/1]).
+-export([init/0]).
 
 
 
 
 %% read rebar.config file and return the {deps, V}
 %% read rebar.config file and return the {deps, V}
@@ -203,3 +204,7 @@ compile_fun(SrcDir, EbinDir) ->
                     exec("cp", [F1, filename:join([EbinDir, AppF])])
                     exec("cp", [F1, filename:join([EbinDir, AppF])])
             end
             end
     end.
     end.
+
+init() ->
+    {ok, Cwd} = file:get_cwd(),
+    update_path(Cwd).