How do I import a variable from another module?
sykora
sykora.skywave at gmail.com
Thu May 3 22:49:41 EDT 2007
On May 4, 6:39 am, noagbodjivic... at gmail.com wrote:
> 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
Does the variable show up in the dir listing of the module?
ie.
>>> import qt_actions
>>> dir(qt_actions)
More information about the Python-list
mailing list