[web2py] Re: How to import file within another directory of modules

2013-01-06 Thread Niphlod
yep, but only if in the folder there is an __init__.py file. http://docs.python.org/2/tutorial/modules.html#packages On Sunday, January 6, 2013 5:57:51 PM UTC+1, howesc wrote: > > i use sub folders all the time - python does the import with dot notation: > > import users.test_users > > cfh > > On

[web2py] Re: How to import file within another directory of modules

2013-01-06 Thread howesc
i use sub folders all the time - python does the import with dot notation: import users.test_users cfh On Sunday, January 6, 2013 8:15:29 AM UTC-8, villas wrote: > > Never had to do this but I wonder... > Do you really have so many module files for one app that you need to > organize them using

[web2py] Re: How to import file within another directory of modules

2013-01-06 Thread villas
Never had to do this but I wonder... Do you really have so many module files for one app that you need to organize them using sub-directories? On Friday, January 4, 2013 12:19:52 PM UTC, Yasir Saleem wrote: > > Hi all, > > In my modules directory, I created a new directory named "users" and >