I am getting an ImportError when I try to access a library inside the lib directory in my application root.
I did the necessary steps in the documentation and it worked with only one module but once I moved to this directory structure with multiple modules it no longer works:
<app root>
|
+-- appengine_config.py
|
+-- lib
|
+-- modules
+-- module1
|
+-- module2
In my appengine_config.py I add the line: vendor.add(os.path.join(os.path.dirname(__file__), 'lib'))
Any thoughts on what might be going on here?
Edit: This directory structure that seemed to work for me:
<app root>
|
+-- lib
|
+-- module1
| +-- appengine_config.py
| |
| +-- app.yaml
| |
| +-- lib <symlink to app root lib>
+-- module2 (same as module 1)
I thought that appengine_config.py was something to be defined at the main application level and not the module level. Is it correct to duplicate the same exact file and sym linking in each module.