Let me ask the question the other way round. How come powergridapp
does find the module powergrid. If I look at the current working
directory, it is the web2py folder, and if I look at sys.path, it does
not have the applications folder in there, so how come the

  from plugin_PowerGrid.PowerGrid import PowerGrid

statement succeeds in finding the module when it is relative to the
applications path? what path is it using to find the powergrid module,
and where does it get this path from?

Thanks
Peter



On Aug 6, 6:01 pm, peter <peterchutchin...@gmail.com> wrote:
> It is 1.98.2
>
> On Aug 6, 5:28 pm, Bruno Rocha <rochacbr...@gmail.com> wrote:
>
>
>
> > What is your web2py version?
>
> > The plugin works only in 1.97+
>
> >http://zerp.ly/rochacbruno
> > Em 06/08/2011 08:55, "peter" <peterchutchin...@gmail.com> escreveu:
>
> > > I have powergridapp working on my system, however when I added the
> > > powergrid plugin to my app I get
>
> > > No module named plugin_PowerGrid.PowerGrid
>
> > > Yet, the file organisation seems to be the same. I have
> > > plugin_PowerGrid within my modules folder and PowerGrid.py within that
> > > folder.
>
> > > Any help appreciated.
> > > Thanks
> > > Peter- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to