Remove zx lib calls
This commit is contained in:
@@ -91,9 +91,8 @@ chunksize(N, C, A) -> chunksize(N div C, C, A + 1).
|
||||
|
||||
|
||||
read_words() ->
|
||||
{ok, V} = zx_lib:string_to_version(proplists:get_value(vsn, module_info(attributes))),
|
||||
HZ_Lib = zx_lib:ppath(lib, {"otpr", "hakuzaru", V}),
|
||||
Path = filename:join([HZ_Lib, "priv", "words4096.txt"]),
|
||||
ModPath = code:which(?MODULE),
|
||||
Path = filename:join([filename:dirname(filename:dirname(ModPath)), "priv", "words4096.txt"]),
|
||||
{ok, Bin} = file:read_file(Path),
|
||||
string:lexemes(Bin, "\n").
|
||||
|
||||
|
||||
Reference in New Issue
Block a user