What about : globdict= globals()
def changevar(): global globdict execfile("changevar.py",globdict) x = 111 # global var changevar() print x # returns 111 instead of 555 -- http://mail.python.org/mailman/listinfo/python-list
What about : globdict= globals()
def changevar(): global globdict execfile("changevar.py",globdict) x = 111 # global var changevar() print x # returns 111 instead of 555 -- http://mail.python.org/mailman/listinfo/python-list