another try

This commit is contained in:
Robert Jelic
2025-09-13 10:03:11 +02:00
parent 1d45cfe38c
commit 328590e256
2 changed files with 8 additions and 5 deletions

View File

@@ -1,11 +1,13 @@
local BasaltDoc = {}
local args = {...}
local docsPath = fs.getDir(args[2])
local defaultPath = package.path
local format = "path;/path/?.lua;/path/?/init.lua;"
local main = format:gsub("path", docsPath)
package.path = main.."rom/?;"..defaultPath
if fs then
local args = {...}
local docsPath = fs.getDir(args[2])
local format = "path;/path/?.lua;/path/?/init.lua;"
local main = format:gsub("path", docsPath)
package.path = main.."rom/?;"..defaultPath
end
local ok1, classParser = pcall(require, "parsers.classParser")