|
|
@ -83,8 +83,9 @@ local function clean_require(module)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
-- similar to clean_require above; forces clean load of scripts directly
|
|
|
|
-- similar to clean_require above; forces clean load of scripts directly
|
|
|
|
-- included from a test file. note that this does *not* force transitively
|
|
|
|
-- included from a test file. note that this does *not* force indirectly loaded
|
|
|
|
-- loaded scripts to be reloaded.
|
|
|
|
-- scripts (that is, scripts that are reqscript()'d by the scripts that are
|
|
|
|
|
|
|
|
-- reqscript()'d by the test file) to be reloaded.
|
|
|
|
local function clean_reqscript(name)
|
|
|
|
local function clean_reqscript(name)
|
|
|
|
dfhack.internal.scripts[dfhack.findScript(name)] = nil
|
|
|
|
dfhack.internal.scripts[dfhack.findScript(name)] = nil
|
|
|
|
return reqscript(name)
|
|
|
|
return reqscript(name)
|
|
|
|