mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge pull request #3 from svenvandevelde/Test-Moose-in-Mission-Solution
Found a solution to avoid having to install MOOSE.
This commit is contained in:
commit
5132c2bfa7
30
Moose/Moose.lua
Normal file
30
Moose/Moose.lua
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
local base = _G
|
||||
|
||||
env.info("Loading MOOSE " .. base.timer.getAbsTime() )
|
||||
|
||||
function script_path()
|
||||
local str = debug.getinfo(2, "S").source
|
||||
return str:match("(.*/)"):sub(1,-2)
|
||||
end
|
||||
|
||||
|
||||
Include = {}
|
||||
|
||||
Include.LoadPath = script_path() .. "Mission\\"
|
||||
|
||||
env.info( "Include.LoadPath = " .. Include.LoadPath )
|
||||
Include.Files = {}
|
||||
|
||||
Include.File = function( IncludeFile )
|
||||
if not Include.Files[ IncludeFile ] then
|
||||
Include.Files[IncludeFile] = IncludeFile
|
||||
base.dofile( Include.LoadPath .. "" .. IncludeFile .. ".lua" )
|
||||
--local chunk, errMsg = base.loadfile( IncludeFile .. ".lua" )
|
||||
env.info( "Include:" .. IncludeFile .. " loaded " )
|
||||
end
|
||||
end
|
||||
|
||||
Include.File( "Database" )
|
||||
|
||||
env.info("Loaded MOOSE")
|
||||
Loading…
x
Reference in New Issue
Block a user