我default.py
在控制器中有一个文件名,并且在同一目录中有一个文件getmsg.py
,但我无法导入getmsg
. default.py
为什么不?我将如何导入它?
错误:
Traceback (most recent call last):
File "F:\xampp\htdocs\web2py\gluon\restricted.py", line 212, in restricted
exec ccode in environment
File "F:/xampp/htdocs/web2py/applications/tools/controllers/default.py", line 11, in <module>
import getmsg
File "F:\xampp\htdocs\web2py\gluon\custom_import.py", line 81, in custom_importer
raise ImportError, 'Cannot import module %s' % str(e)
ImportError: Cannot import module 'getmsg'