I'm new to Python so I'm sorry if this question seems dumb, but I couldn't find specific help on that.
I'm working on a testing project where I wanted all the logic to be loaded into a mother component so they could be immediately accessed by children modules. Is it possible in Python language?
For example, if I'm creating a package with this tree:
game/
__init__.py
start.py
core/
...
config.py
mechanics/
...
combat/
...
and if I use, for example, random library in almost every module, is it necessary to import it to each individual file or can i just import it into start.py so it could be inherited by children modules?
My ideal goal was to use core/config.py to import all the basic and shared logics and just importing this config file to all children modules, but it is not working.
Any ideas? Is there any better way to do that? Thanks a lot!