Created
August 8, 2011 06:41
-
-
Save wardbekker/1131312 to your computer and use it in GitHub Desktop.
Autoloading of modules
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
%% autoload all modules that are in the code:path() and reside in the user directory | |
%% put in ~/.erlang | |
[code:ensure_loaded(list_to_atom(filename:rootname(filename:basename(F)))) | |
|| P <- lists:filter(fun(Path) -> string:str(Path, os:getenv("USER")) > 0 end, code:get_path()), F <- filelib:wildcard(P ++ "/*.beam")]. |
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
# Includes Rebar dependencies, make sure the beam files are up-to-date. | |
rebar get-deps compile | |
erl -pa `pwd`/ebin `pwd`/deps/*/ebin -boot start_sasl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment