-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinit.lua
27 lines (20 loc) · 843 Bytes
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
local paths = require 'paths'
local dataframe_dir = string.gsub(paths.thisfile(), "[^/]+$", "")
-- Custom argument checks
local argcheck_file = dataframe_dir .. "argcheck.lua"
assert(loadfile(argcheck_file))()
-- Custom busted assertions, only needed for running tests
local assert_file = dataframe_dir .. "custom_assertions.lua"
if (paths.filep(assert_file)) then
assert(loadfile(assert_file))()
end
-- Get the loader funciton and start by making utils available to all
local loader_file = dataframe_dir .. "utils/loader.lua"
assert(loadfile(loader_file))()
load_dir_files(dataframe_dir .. "utils/")
-- Load all the classes
load_dir_files(dataframe_dir .. "helper_classes/")
load_dir_files(dataframe_dir .. "dataseries/")
load_dir_files(dataframe_dir .. "dataframe/")
load_dir_files(dataframe_dir .. "sub_classes/")
return Dataframe