I have more informations.
The problem comes from the initialization of the functions.
external script first.py (called through starred controller Module “first.main”)
called on “CUBE” object
Player = objList.get("OBPlayer")
Player["name"] = "Elise"
print "first ok"
external script second.py (called through NOT starred controller Module “second.main”)
called on PLAYER object
if Player["name"] == "Elise":
print "second ok"
if Player["name"] == "Elise"
KeyError : 'value = gameOb[key]: KX_GameObject, key "name" does not exist
The error was that test() in second.py (not starred) was called before main() in first.py (starred)
if I delete test(), the result I get is
Can we change the priority of the part that is read only once, also?
So we can get