I have some functions in func.py
that I would like to access from my web2py controller called default.py
. I tried to import and use func.py
in default.py
with "import func" and "calculatesomething = func.calculatesomething", but it doesn't work. The file func.py
is also added in the Modules section of my web2py program.
Why it is not working? How can I make it to work? Should the module be in func.py
or default/func.py
or something else?