'Updating variable imported from other Python script

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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source