Adapt for running from escript (fix 7).
This commit is contained in:
@@ -112,7 +112,7 @@ try_escript() ->
|
||||
RootDir = filename:dirname(filename:dirname(Pref)),
|
||||
AppsDir = filename:join(RootDir, "lib"),
|
||||
io:format("AppsDir = ~p~n", [AppsDir]),
|
||||
filename:join([AppsDir, [$.|Suf], "priv"]); % prepend "." to suffix that starts with "/"
|
||||
filename:join(AppsDir, [$.|Suf]); % prepend "." to suffix that starts with "/"
|
||||
false ->
|
||||
case code:priv_dir(esqlite) of
|
||||
{error, bad_name} -> "priv";
|
||||
|
||||
Reference in New Issue
Block a user