PDA

View Full Version : Lua seems to process commands out of order at times, how can I fix this?



caseyp
December 22nd, 2016, 11:18 AM
I've got a script that looks like this...


print('Home Control Initializing... ')


require('PHC_GetWeather')
etc...

The GetWeather file has at the beginning:


print ('Loading Weather data")

and at the end has:


print ('Weather data loaded')

I would expect in the Girder Lua console to see:

Home Control Initializing...
Loading Weather data...
Weather data loaded

but when I restart Girder I actually see:

Weather data loaded
Loading Weather data...
Home Control Initializing...


Anybody have any idea why and what I can do to fix it?

Thanks,
Casey