diff --git a/configure.lua b/configure.lua index de16fe587..0e5ca8c44 100644 --- a/configure.lua +++ b/configure.lua @@ -3,7 +3,9 @@ function loadfile_(filename, env) local file if _VERSION == "Lua 5.1" then file = loadfile(filename) - setfenv(file, env) + if file then + setfenv(file, env) + end else file = loadfile(filename, nil, env) end