From be5bbfcf1185e332dbbe68349bdae97d2e725446 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Tue, 21 May 2024 17:00:28 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E9=80=82=E9=85=8Dotp27?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/npRCompiler.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() ->