Google App Engine Python: sys.path.append not working online -


i have

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

it work under windows xp app engine sdk (offline)

but when deploy online, give me <type 'exceptions.importerror'>, missing deploy online?

try this:

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

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -