diff options
Diffstat (limited to 'Master/bin/win32/luatools.lua')
-rwxr-xr-x | Master/bin/win32/luatools.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/bin/win32/luatools.lua b/Master/bin/win32/luatools.lua index 1d87322c108..c75b1c4e86e 100755 --- a/Master/bin/win32/luatools.lua +++ b/Master/bin/win32/luatools.lua @@ -6078,8 +6078,11 @@ function resolvers.expand_variables() local expansions, environment, variables = { }, instance.environment, instance.variables local env = resolvers.env instance.expansions = expansions - if instance.engine ~= "" then environment['engine'] = instance.engine end - if instance.progname ~= "" then environment['progname'] = instance.progname end + local engine, progname = instance.engine, instance.progname + if type(engine) ~= "string" then instance.engine, engine = "", "" end + if type(progname) ~= "string" then instance.progname, progname = "", "" end + if engine ~= "" then environment['engine'] = engine end + if progname ~= "" then environment['progname'] = progname end for k,v in next, environment do local a, b = match(k,"^(%a+)%_(.*)%s*$") if a and b then |