Global Variables in Python?

Could somebody tell me the recommended way of setting up and using “Global” (i.e. global across the whole game, not just within the context of an individual script) variables in the BGE

I’ve been futzing around with the message facility, but it would really be a lot easier if I was able to set up and access a few game-specific variables that all scripts had access to

Any help would be much appreciated. Thx

store the variables in GameLogic.globalDict, this is kept between loading blend files too.
GameLogic.globalDict[‘SomeVar’] = 10

cool. thanks for the info, just what i needed

Thanks alot for that clear info man!