By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

how can I modify an imported variable ?

P: n/a
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
Dec 27 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.