Files to load need to be written in the manifest txt file of your addon, hardcoded.
Just like any other lua or xml file.
If the files are stored in the data subtable it would be:
Code:
/data/esoui_constants_live.lua
You cannot dynamically add files to your addon via lua or ESOUI.
So your python script should enhance the txt file, if you want to add filenames dyanmically.
And you need to call the function names from any lua file then as long as they are global and not local.
You should add all that global functions and variables to 1 namespace (1 table with your unique addon's name) though so that they do not pollute the _G global table and accidently overwrite other adon's code!
e.g. in your addon's 1st file (1st lua file from the top in your manifest txt file) create 1 gobal at the top:
Lua Code:
ESOPythonConstantsGlobal = {}
In each project lua file add at the top:
Lua Code:
ESOPythonConstantsGlobal = ESOPythonConstantsGlobal or {} --will use given global or create an empty table if it was nil
And your functions and variables should be added to that global table then:
Lua Code:
function ESOPythonConstantsGlobal.ActionBarSlotType_get_string(value)
return ACTIONBARSLOTTYPE_STRINGS[value] or tostring(value)
}
You will be able to call the funcs like this from any of your project files then:
Lua Code:
local myString = ESOPythonConstantsGlobal.ActionBarSlotType_get_string(ACTION_TYPE_ABILITY)