Google App Engine Python: sys.path.append not working online
Question: I have this

    
    
    import sys
    sys.path.append('extra_dir')
    import extra_module
    

It work perfectly under Windows XP App Engine SDK (offline)

But when deploy online, it give me `<type 'exceptions.ImportError'>`, what am
I missing to deploy it online?


Answer: Try this:

    
    
    sys.path.append(os.path.join(os.path.dirname(__file__), 'extra_dir'))
    

