module search path

angel dai4happy at yahoo.com
Fri Jul 30 05:09:12 CEST 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