lua: use mp_path_is_absolute() for checking package paths

This makes it work with the shitty OS. Behavior on Linux should be the
same.
This commit is contained in:
wm4 2020-02-06 14:15:31 +01:00
parent 1dc3507474
commit 7c5c057717
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ static void fuck_lua(lua_State *L, const char *search_path, const char *extra)
while (path.len) {
bstr item;
bstr_split_tok(path, ";", &item, &path);
if (bstr_startswith0(item, "/")) {
if (mp_path_is_absolute(item)) {
newpath = talloc_asprintf_append(newpath, "%s%.*s",
newpath[0] ? ";" : "",
BSTR_P(item));