I am playing around with python (and pygame in particular), and I am organizing my project files:
/cls
imageloader.py
level.py
__init__.py
/graphics
/maps
game.py
__init__.py
...
And comes the question about global constants in modules (like a configuration variables - FPS, TILESIZE, etc). Is there any way to access constant defined in game.py within /cls/level.py? And, what's more important - it's a wrong approach, isn't it? Should I pass it as an argument?
What's a pytonish way to do it?