From 278fd3edb6ead6cd65c2293f823887d19e4fbc8e Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Wed, 3 May 2017 13:51:20 +0200 Subject: require --- src/defs.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/defs.js') diff --git a/src/defs.js b/src/defs.js index c580ee5..3b5a923 100644 --- a/src/defs.js +++ b/src/defs.js @@ -294,6 +294,9 @@ module.exports.LUA_VDIR = LUA_VDIR; let os = false; if (typeof require === "function" && (os = require('os')) && typeof os.platform === "function" && os.platform() === 'win32') { + const LUA_DIRSEP = "\\"; + module.exports.LUA_DIRSEP = LUA_DIRSEP; + /* ** In Windows, any exclamation mark ('!') in the path is replaced by the ** path of the directory of the executable file of the current process. @@ -320,6 +323,9 @@ if (typeof require === "function" && (os = require('os')) && typeof os.platform LUA_CDIR + "loadall.dll;.\\?.dll"; module.exports.LUA_CPATH_DEFAULT = LUA_CPATH_DEFAULT; } else { + const LUA_DIRSEP = "/"; + module.exports.LUA_DIRSEP = LUA_DIRSEP; + const LUA_ROOT = "/usr/local/"; module.exports.LUA_ROOT = LUA_ROOT; -- cgit v1.2.3-54-g00ecf