tidy up env creation - round 1

This commit is contained in:
kepler155c@gmail.com
2020-05-05 17:25:58 -06:00
parent 4018d4bcfb
commit 3d3e5400cf
6 changed files with 18 additions and 24 deletions

View File

@@ -139,6 +139,8 @@ function kernel.getShell()
return shell
end
kernel.makeEnv = shell.makeEnv
function kernel.newRoutine(args)
kernel.UID = kernel.UID + 1
@@ -151,7 +153,7 @@ function kernel.newRoutine(args)
}, { __index = Routine })
Util.merge(routine, args)
routine.env = args.env or shell.getEnv()
routine.env = args.env or shell.makeEnv()
return routine
end