Google App Engine - Importing my own source modules (multiple files)
google-app-engine, python
Solution
Have you tried importing as if you were starting at the top level? Like
import modules.b
Problem
I am writing a GAE application and am having some difficulty with the following problem. I've created multiple python files (say a.py and b.py) which are both stored in the same folder. I am able to call code in a.py or b.py by mapping URL's to them (using app.yaml). What I haven't figured out how to do is import the code from one into another. Can anyone help me with the syntax and/or any config that is required here? For instance, I am under the impression that I can include the code from b.py in the file a.py by issuing the following statement in a.py ``` import b ``` I'm not having any success with this approach. Specifically I receive this error: ``` ImportError: No module named b ``` Any suggestions? Thanks, Matt