Created
September 17, 2010 21:25
-
-
Save jdunphy/584986 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
% Root of the modules | |
-define (BH_ROOT, fun() -> | |
case code:priv_dir(beehive) of | |
{error, bad_name} -> filename:join([filename:dirname(code:which(?MODULE)), "..", ".."]); | |
Dir -> filename:join([filename:dirname(Dir), "..", "..", "..", ".."]) | |
end | |
end()). | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment