Re: Error importing __init__ declared variable from another package

2012-03-07 Thread Fabio Zadrozny
On Wed, Feb 29, 2012 at 1:38 AM, Jason Veldicott wrote: >> > Hi, >> > >> > I have a simple configuration of modules as beneath, but an import error >> > is reported: >> > >> > /engine >> >    (__init__ is empty here) >> >    engine.py >> > /sim >> >    __init__.py >> > >> > >> > The module engine.

Re: Error importing __init__ declared variable from another package

2012-02-28 Thread Jason Veldicott
> > > Hi, > > > > I have a simple configuration of modules as beneath, but an import error > > is reported: > > > > /engine > >(__init__ is empty here) > >engine.py > > /sim > >__init__.py > > > > > > The module engine.py imports a variable instantiated in sim.__init__ as > > follows: >

Re: Error importing __init__ declared variable from another package

2012-02-28 Thread Peter Otten
Jason Veldicott wrote: > Hi, > > I have a simple configuration of modules as beneath, but an import error > is reported: > > /engine >(__init__ is empty here) >engine.py > /sim >__init__.py > > > The module engine.py imports a variable instantiated in sim.__init__ as > follows: >

Re: Error importing __init__ declared variable from another package

2012-02-28 Thread Jason Veldicott
Accidentally hit post by mistake before msg completed. Any comments appreciated. It's a very simple scenario, but not sure what the mistake is. Thanks Jason On Tue, Feb 28, 2012 at 6:55 PM, Jason Veldicott wrote: > Hi, > > I have a simple configuration of modules as beneath, but an import er

Error importing __init__ declared variable from another package

2012-02-27 Thread Jason Veldicott
Hi, I have a simple configuration of modules as beneath, but an import error is reported: /engine (__init__ is empty here) engine.py /sim __init__.py The module engine.py imports a variable instantiated in sim.__init__ as follows: from sim import var_name var_name.func() The fo