fixed problem with GAE and custom-import, thanks howesc

This commit is contained in:
Massimo DiPierro
2011-11-25 21:51:09 -06:00
parent e3534136e6
commit 72651cf893
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ import threading
def custom_import_install(web2py_path):
global _web2py_importer
global _web2py_path
if _web2py_path == web2py_path:
return # Already installed
if isinstance(__builtin__.__import__, _Web2pyImporter):
return #aready installed
_web2py_path = web2py_path
_web2py_importer = _Web2pyImporter(web2py_path)
__builtin__.__import__ = _web2py_importer