I copied a module to the "modules" folder of the application in web2py. When I tried to import the module in any function inside of any of the controllers, I get the following error:
<type 'exceptions.ImportError'> No module named module_name
I get that error irrespective of any module used. But if I copied the same module to the "site-packages" and import it, it works perfectly.
I found out that the "sys.path" doesn't contain the modules folder but contains the "site-packages" folder.
How do I add the modules folder to "sys.path" specific for web2py or are there any other ways to solve this problem?