module search path

angel dai4happy at yahoo.com
Thu Jul 29 23:09:12 EDT 2004


Should use sys.path.append('../common').

sys.path.append('../')
import common.utils
is error.
For the common is not a package. If you add a __init__.py in the directory
common, above code will work.





More information about the Python-list mailing list