Does anyone know if it’s possible(and if so how) do require a Lua file from the devices documents directory? My googling skills haven’t really turned up anything except this thread(http://developer.coronalabs.com/forum/2011/11/22/require-documents-directory) which doesn’t really work.
Below is what I tried:
[lua]–replaces the / with . as per require function uhh requires
local pathToDocuments = string.gsub(system.pathForFile( nil, system.DocumentsDirectory ), “/”, “.”)…"."
local myModule = require(pathToDocuments…moduleName)[/lua]
The error comes back that the file doesn’t exist. [import]uid: 147305 topic_id: 32447 reply_id: 332447[/import]
