fixed problem with GAE and custom-import, thanks howesc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user