diff --git a/src/_premake_main.lua b/src/_premake_main.lua index e53b4686..6cba572b 100644 --- a/src/_premake_main.lua +++ b/src/_premake_main.lua @@ -82,7 +82,8 @@ os.locate(name .. ".lua") if not p then - return "\n\tno file " .. name .. " on module paths" + -- try to load from the embedded script + p = "$/" .. full end local chunk, err = loadfile(p)