Working to resolve environment include issues...

This commit is contained in:
Craig Everett 2021-03-08 09:48:22 +09:00
parent 26a2a0fe5d
commit 0f9bf4e65a

View File

@ -999,6 +999,7 @@ run_project(ProjectDir, ExecDir, RunArgs) ->
end.
run_project(ProjectDir, ExecDir, RunArgs, Meta) ->
true = os:putenv("zx_include", filename:join(os:getenv("ZX_DIR"), "include")),
case pre_prep(Meta, RunArgs) of
{Type, Deps, NewArgs} ->
{ok, Dir} = file:get_cwd(),
@ -1083,7 +1084,6 @@ pre_prep4(Deps, {Realm, Name, _}, Dir, Rest) ->
%% Execution prep common to all packages.
prepare(Deps) ->
true = os:putenv("zx_include", filename:join(os:getenv("ZX_DIR"), "include")),
ok = lists:foreach(fun include_env/1, Deps),
NotInstalled = fun(P) -> not filelib:is_dir(zx_lib:ppath(lib, P)) end,
Needed = lists:filter(NotInstalled, Deps),