how can I modify an imported variable ?

yomgui not at valid.com
Wed Dec 27 09:50:18 EST 2006


I've tried this:

import MyPackage
if MyPackage.aVariable is None:
     MyPackage.aVariable = True

but when I tried to access MyPackage.aVariable from another file
(ie through an other import) the value is still None.


how can I do this

thanks

yomgui



More information about the Python-list mailing list