Dec-31-2018, 01:12 PM
If you run
one.py
it is not run as module one
but as module __main__
. The import one
in module two imports a new copy of the execution of one.py. That's why your code doesn't work.