i am constantly changing a variable in one module and trying to use that variable in another module.But I don't see the updated variable . For eg. I have check.py
total_time=0
I have check_1.py which increments total_time from check.py
import check
for i in range(6):
check.total_time +=1
sleep(4)
I have check_2.py which needs to use the incremented value
import check
for i in range(5):
print "in check 2 , total time is ", check.total_time
sleep(3)
I am running check_1 and check_2 at the same time . check_1 keeps on increasing the value. BUT check_2 always prints 0 whereas i am expecting it to print the updated increased value. I am not sure what i am missing here .