do not clear _isIncludingExternal in nested calls

This commit is contained in:
WorldofBay 2019-02-21 15:13:04 +01:00 committed by GitHub
parent 3dbbc32a88
commit 8ead541af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,10 +82,11 @@
function includeexternal(fname)
local fullPath = p.findProjectScript(fname)
local wasIncludingExternal = api._isIncludingExternal
api._isIncludingExternal = true
fname = fullPath or fname
dofile(fname)
api._isIncludingExternal = nil
api._isIncludingExternal = wasIncludingExternal
end
p.alias(_G, "includeexternal", "includeExternal")