Skip to content

Commit

Permalink
pric dir fix
Browse files Browse the repository at this point in the history
git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1289 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information
Claes Wikstrom committed Nov 11, 2008
1 parent cd2deb9 commit 8cc69f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/yaws_sendfile.erl
Expand Up @@ -10,7 +10,14 @@

start() ->
Shlib = "yaws_sendfile_drv",
Dir = filename:join([filename:dirname(code:which(?MODULE)), "..", "priv"]),
Dir = case yaws_generated:is_local_install() of
true ->
filename:dirname(code:which(?MODULE)) ++ "/../priv/lib";
false ->
%% ignore dialyzer on this one
PrivDir = code:priv_dir(yaws),
filename:join(PrivDir,"lib")
end,
case erl_ddll:load_driver(Dir, Shlib) of
ok -> ok;
{error, already_loaded} -> ok;
Expand Down

0 comments on commit 8cc69f0

Please sign in to comment.