I’m trying to figure out exactly what happens when I first import a script in my code compared to when I just call the function without explicitly importing the script. For example, if I had a script called “Test” with a function inside it called fTest(), what is the difference between these two examples?
import Test
Test.fTest()
Test.fTest()
My specific situation is that I have been using the second example, but I think it is causing me a specific problem. The function that I am calling relies on data from a query that runs at the top of the “Test” script and creates a variable with a Python Dataset. It appears the variable was somehow being cached and did not refresh every time I called the function. I am wondering if importing the script will update the variable every time.