Never mind i just put the folder in /web2py and smiled
But i am not sure if it s good way to do it

On Mar 18, 4:11 pm, PanosJee <panos...@gmail.com> wrote:
> Hey guys there were some posts regarding this issue but i could not
> figure out what to do
> I want to use some python libraries but i cannot install them in site-
> packages or pymodules so i have to add them in the modules folder.
>
> Let s say i want to use gdatamind
> There are tons of files and in most of them there are import like
> import gdata
> import gdata.contacts
>
> Acually i am using the pystache library. In the __init__.py there is
> the following code
> from pystache.template import Template
> from pystache.view import View
>
> in my controller i have written
> from applications.init.modules.pystache import *
> i also tried
> import applications.init.modules.pystache as pystache
>
> I get the following error
> ImportError: No module named pystache.template
>
> And i get the same error. I could rewrite the import in the
> __init__.py but then i have to change all imports in other files of
> the code and this could be a show stopper when i ll try to put in the
> modules the gdata library.
>
> Do you have any hints on how to do this import and actually change the
> namespace of the import or so?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to