Removed prepending libraries for debugging to LUA_CPATH when custom interpreter is specified.

This helps to minimize conflicts when stock lua or custom lua interpreter
is used; libraries from /clibs/ folders will only be used as the last
resort.
This commit is contained in:
Paul Kulchenko
2014-09-19 22:08:45 -07:00
parent 2b7cec04b9
commit 4ba15eb62f

View File

@@ -58,7 +58,9 @@ return {
end
local cpath = os.getenv(envname)
if rundebug and cpath then
if rundebug and cpath and not ide.config.path['lua'..(version or "")] then
-- prepend osclibs as the libraries may be needed for debugging,
-- but only if no path.lua is set as it may conflict with system libs
wx.wxSetEnv(envname, ide.osclibs..';'..cpath)
end
if version and cpath then