How do I import a variable from another module?

noagbodjivictor at gmail.com noagbodjivictor at gmail.com
Thu May 3 21:39:07 EDT 2007


On May 3, 9:36 pm, Andy Terrel <andy.ter... at gmail.com> wrote:
> are you sure your variable isn't in some code block that wouldn't be
> read on import?  Such as:
>
> if __name__ == "__main___":
>      actions = 1

No Andy, I have not put the variable in any code block




More information about the Python-list mailing list