I have defined a variable (a list) in a Python script A and import it in script B, like so:
from app import keywords
At some point script A updates the variable (appends list items), but while script B is running, the variable doesn't update.
I've tried with reload but then I get following error message: TypeError: reload() argument must be a module
Am I missing something?
source https://stackoverflow.com/questions/71916018/updating-variable-imported-from-other-python-script
Comments
Post a Comment