diff --git a/src/npRCompiler.erl b/src/npRCompiler.erl index 591a34c..aa91179 100644 --- a/src/npRCompiler.erl +++ b/src/npRCompiler.erl @@ -619,11 +619,11 @@ targetType_1("") -> exe; targetType_1(".exe") -> exe. erlInterfaceDir(Subdir) -> - case code:lib_dir(erl_interface, Subdir) of + case code:lib_dir(erl_interface) of {error, bad_name} -> throw({error, {erl_interface, Subdir, "code:lib_dir(erl_interface)" "is unable to find the erl_interface library."}}); - Dir -> Dir + Dir -> filename:join(Dir, Subdir) end. defaultEnv() ->