module import error, what's wrong?

smith jack thinke365 at gmail.com
Sun Aug 7 20:45:23 EDT 2011


from common.URLTool import URLTool
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?



More information about the Python-list mailing list