'require' another file in config.lua

Hi,

Apparently, i can’t use ‘require’ in config.lua. If i do:

local myVar = require("myVarfile")

at the top of my config.lua the app stops displaying properly. Is that the normal behavior? I thought since it is essentially a lua file i can use ‘require’.

If this is the normal behavior, is there a work around? (like copying values from the external file??)

thanks.

Luay

Never mind.

If I include the require statement inside the if statements that check pixel width then there are no problems.

Strange behavior, i know.

Nope, I spoke too soon.

I just tested on device and it didn’t work. No error or freezing, just display objects are not positioned properly.

So, back to my original question: If i can’t ‘require’ in config.lua, what can i do?

why are you trying to require in the configuration file

Never mind.

If I include the require statement inside the if statements that check pixel width then there are no problems.

Strange behavior, i know.

Nope, I spoke too soon.

I just tested on device and it didn’t work. No error or freezing, just display objects are not positioned properly.

So, back to my original question: If i can’t ‘require’ in config.lua, what can i do?

why are you trying to require in the configuration file