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
Post a Comment