On 08/08/2011 02:45 AM, smith jack wrote:
> from common.URLTool import URLTool


could it be that you meant
from common import URLTool


As I don't know the module 'common' I am just guessing

> tool = URLTool()
> 
> Traceback (most recent call last):
>   File "E:\workspace\url\test.py", line 7, in ?
>     from common.URLTool import URLTool
> ImportError: No module named common.URLTool
> 
> URLTools is a class write by myself, it works well ,but cannot be
> imported in the other package, what's wrong?


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to