"Is there any command for starting the import/load window"
What import/load window? And what's such a hassle about writing the filenames of the files you're loading? As mentioned above, please be more specific about what you are trying to do.
Malice, loading files from within the main game loop is a standard task for most games (indeed, most software in general.) As with any other task you only want to do once, as opposed to over and over every frame, create a variable to keep track of that task. In your loop check that variable. If the variable is in one state (eg. True) skip that section of code. If the variable is false (or 0 or whatever) execute your loading function, within which files are loaded and the variable is set to true.
What import/load window? And what's such a hassle about writing the filenames of the files you're loading? As mentioned above, please be more specific about what you are trying to do.
Malice, loading files from within the main game loop is a standard task for most games (indeed, most software in general.) As with any other task you only want to do once, as opposed to over and over every frame, create a variable to keep track of that task. In your loop check that variable. If the variable is in one state (eg. True) skip that section of code. If the variable is false (or 0 or whatever) execute your loading function, within which files are loaded and the variable is set to true.