From 216e0a15c67177cc8ef3232eb7160876885abce6 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 29 Jun 2020 15:26:27 +1000 Subject: [PATCH] removed os.spawnfile because nothing used it and it doesn't align with the system's design --- module/loadfile.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/loadfile.lua b/module/loadfile.lua index 1b37155..e7d3037 100644 --- a/module/loadfile.lua +++ b/module/loadfile.lua @@ -7,10 +7,7 @@ end function runfile(p,...) -- string -- -- runs file *p* with arbitrary arguments in the current thread return loadfile(p)(...) end -function os.spawnfile(p,n,...) -- string string -- number -- spawns a new process from file *p* with name *n*, with arguments following *n*. - local tA = {...} - return os.spawn(function() local res={pcall(loadfile(p), table.unpack(tA))} computer.pushSignal("process_finished", os.pid(), table.unpack(res)) dprint(table.concat(res)) end,n or p) -end + _G.package = {} package.path="./?;./?.lua;/boot/lib/?.lua;/pkg/lib/?.lua;/boot/lib/?/init.lua;/pkg/lib/?/init.lua" package.loaded = {computer=computer,component=component,fs=fs,buffer=buffer}