Hi, In the controllers directory I wanted to define some functions in another file. I had hoped to import the functions to make them available to default.py but I haven't been able to get this to work.
I'm hoping that someone can point out my error, and possibly a solution. In the controllers directory there is default.py and file1.py --- default.py --- ... from file1 import * ... a = function1(x,y) ... b = function2(y,z) ... --- file1.py --- ... def function1(value1,value2): code return def function2(value1,value2): code return ImportError: No module named file1 (I defined __init__.py in controllers, but this didn't help) Any pointers would be appreciated - Tom -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.