On Monday, September 26, 2011 2:11:24 AM UTC-4, Vineet wrote: > > I use a custom 3rd party class (named 'dabo') in web2py. > Is there any catch if I keep the class in /web2py/site-packages ?
site-packages is fine. The advantage of /app/modules is that you can have different versions of the same module in different apps. Also, if the module is specific to a given app, it makes more sense to keep it with the app. But for third party modules, site-packages makes sense, particularly if multiple apps need to access it. > > Earlier I had kept the same in /myapp/modules folder. > But it could not be imported in model files. You should be able to import modules in model files. Must have been a bug, either in your code or in web2py. Anthony