Error importing __init__ declared variable from another package
jasonveldicott at gmail.com
Tue Feb 28 08:57:06 CET 2012
Accidentally hit post by mistake before msg completed.
Any comments appreciated. It's a very simple scenario, but not sure what
the mistake is.
On Tue, Feb 28, 2012 at 6:55 PM, Jason Veldicott
<jasonveldicott at gmail.com>wrote:
> I have a simple configuration of modules as beneath, but an import error
> is reported:
> (__init__ is empty here)
> The module engine.py imports a variable instantiated in sim.__init__ as
> from sim import var_name
> The following error messaged is received on the func() call above (Eclipse
> "undefined variable from import: func"
> Any idea why this is causing an error?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list