|
|
@@ -8,7 +8,6 @@ function runfile(p,...) -- runs file *p* with arbitrary arguments in the current |
|
|
|
return loadfile(p)(...) |
|
|
|
end |
|
|
|
function os.spawnfile(p,n) -- spawns a new process from file *p* with name *n* |
|
|
|
dprint(p,n) |
|
|
|
return os.spawn(function() xpcall(loadfile(p),function(e) dprint(e.."\n"..debug.traceback()) end) end,n or p) |
|
|
|
end |
|
|
|
function require(f) -- searches for a library with name *f* and returns what the library returns, if possible |
|
|
|