Hello Folks,
so I have a module inside a subpackage. Importing like
package.subpackage.test_module works fine.
in main.py:
from package.subpacke import test_module
urls = ( ...
'/Test', 'test_module.test_app'
...
)
in the test_module:
test_app = web.application(urls, locals())
But I always get this error:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/web/application.py", line 239, in
process
return self.handle()
File "/Library/Python/2.7/site-packages/web/application.py", line 230, in
handle
return self._delegate(fn, self.fvars, args)
File "/Library/Python/2.7/site-packages/web/application.py", line 416, in
_delegate
mod = __import__(mod, None, None, [''])
ImportError: No module named test_module
Any Ideas? In General the import works fine. I can import it into a plain
python project, but as soon as I do the test_module.test_app thing I get
an error.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.