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

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

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -