module import error, what's wrong?

smith jack thinke365 at gmail.com
Mon Aug 8 02:45:23 CEST 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