How do you modify sys.path in Google App Engine (Python)?
I've tried adding the following line to my handler script (main.py), but it doesn't seem to work: sys.path.append('subdir') subdir lives in the my root directory (i.e. the one containing app.yaml ). This doesn't seem to work, because when I try to import modules that live in subdir , my app explodes. 1) Ensure you have a blank __init__.py file in subdir . 2) Use a full path; something like this: import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), 'subdir')) Edit: providing more info to answer questions asked in a comment. As Nick Johnson demonstrates you can place