From 8879f91c62fa970045ba7d3c31166f267e8c613c Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Wed, 24 Jan 2018 18:48:13 -0500 Subject: [PATCH] installer branches --- sys/apis/injector.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/apis/injector.lua b/sys/apis/injector.lua index 0b060c5..972e5ae 100644 --- a/sys/apis/injector.lua +++ b/sys/apis/injector.lua @@ -129,8 +129,8 @@ local function requireWrapper(env) -- place package and require function into env env.package = { - path = env.LUA_PATH or os.getenv('LUA_PATH') or DEFAULT_PATH, - upath = env.LUA_UPATH or os.getenv('LUA_UPATH') or DEFAULT_UPATH, + path = env.LUA_PATH or (os.getenv and os.getenv('LUA_PATH')) or DEFAULT_PATH, + upath = env.LUA_UPATH or (os.getenv and os.getenv('LUA_UPATH')) or DEFAULT_UPATH, config = '/\n:\n?\n!\n-', loaded = { math = math,