pulling custom_import from upstream
This commit is contained in:
1 parent
d450d48e99
commit
c58c6157e9
1 file changed
+2
-1
@@ -12,8 +12,9 @@ from gluon import current
|
|||||||
NATIVE_IMPORTER = __builtin__.__import__
|
NATIVE_IMPORTER = __builtin__.__import__
|
||||||
INVALID_MODULES = set(('', 'gluon', 'applications', 'custom_import'))
|
INVALID_MODULES = set(('', 'gluon', 'applications', 'custom_import'))
|
||||||
|
|
||||||
|
|
||||||
# backward compatibility API
|
# backward compatibility API
|
||||||
|
|
||||||
|
|
||||||
def custom_import_install():
|
def custom_import_install():
|
||||||
if __builtin__.__import__ != custom_importer:
|
if __builtin__.__import__ != custom_importer:
|
||||||
INVALID_MODULES.update(sys.modules.keys())
|
INVALID_MODULES.update(sys.modules.keys())
|
||||||
|
|||||||
Reference in new issue
Block a user