开发者

Ironpython tools for VS2010: how to debug python code with 'import'?

I have installed an IronPython tools for VS2010 and all works fine. But if i try to use an 'imp开发者_StackOverflowort' statement outside 'hello world', for example:

import email

Iron python will fail to debug with error message like 'cannot import mime from email'. Any hints how to avoid such errors or ironpython tools for vs2010 currently can't hand any 'include' outside 'os'/'sys'?


I haven't tried IronPython tools for VS2010 but I guess your sys.path does not include path to the email module. Check there are email and email.mime modules and if not, add the path to them into `sys.path' manually.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜