How can I run a python script before anything else? I have a python script that defines all the scenes, and other scripts import it. Since scenes are added after the scripts, I get a load of errors telling me that the scenes are not defined on startup. This is because the scripts are executed, but the scenes are not yet added nor defined. In fact, I get about 4 errors before the scenes are defined. I have a python script that I want to run before anything else. It adds and defines all the scenes. Is there anyway to execute a script before anything else is executed? Thanks.
There is a checkbox in the Python controller which seems to be suitable for your needs. It's tooltip says "Mark controller for execution before all non-marked controllers (good for startup scripts)". See screenshot:    



Since you did not mention that you already tried this - you may want to check this option on the controller carrying your scene-defining script.