Ok, so I have the following question:
I have the following: x.py:
from y import aFunc
y.py:
from z import aDict
Now, x runs on a run,sleep,repeat schedule. It then calls aFunc on certain files. aFunc uses the values in aDict and then returns.
aDict is in a python module that is managed by a user in the econ department. I understand that import is called once and then cached. Even if I was to put the import statement inside aFunc it'll still be imported only once and then cached (please correct me if I'm wrong).
But I want to be able to pick up any changes to aDict on the fly, in other words, I'd like to re-import z.aDict every time x called y.aFunc
Any advice will be much appreciated!