Permalink
Browse files

reverted to use code:priv_dir

  • Loading branch information...
1 parent 3d4658e commit 1059d3044f3fff1d3d9672e420304eb0ceb6b488 @tonyrog committed Feb 24, 2014
Showing with 1 addition and 14 deletions.
  1. +1 −14 src/afunix.erl
View
@@ -43,7 +43,7 @@
-endif.
load(Driver) ->
- Path = priv_dir(),
+ Path = code:priv_dir(afunix),
case erl_ddll:load(Path, Driver) of
ok ->
ok;
@@ -52,19 +52,6 @@ load(Driver) ->
Err
end.
-priv_dir() ->
- case code:priv_dir(afunix) of
- {error, bad_name} ->
- case code:which(?MODULE) of
- Filename when is_list(Filename) ->
- filename:join([filename:dirname(Filename), "../priv"]);
- _ ->
- "../priv"
- end;
- Dir ->
- Dir
- end.
-
%%
%% Send data on a socket
%%

0 comments on commit 1059d30

Please sign in to comment.