How do I explicitly tell Google App Engine (python) to import json from the python standard libraries?
Due to a poorly named file (that I can NOT change or rename at this time) I am having trouble importing json.
There is a json.py in the same directory as the file that I am working on. When I try:
import json
it imports the file in the same directory.
Is there a way I can do something along the lines of:
from ../ import json
to import the Native JSON library?
EDIT:
I have now even tried renaming the offending file and replacing all uses of this file. But I'm still not able to import the json standard lib through GAE.
Attached is the error log:
File "/Users/admin/Blah/dataaccess.py", line 13, in <module>
from classes import ZenDesk
File "/Users/admin/Blah/classes/ZenDesk.py", line 10, in <module>
import json
File "/Users/admin/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py", line 892, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named classes.json
Please Help google app engine should be looking for the standard library and not in the subdirectory classes