Hm this doesn't work. Say I have the following directory structure:

A
|--- util
|    |--- foo.py
|
|--- B
     |--- bar.py


And bar.py has this line

from util import foo


I then run

python B/bar.py

in directory A. Still got error

ImportError: No module named util


A check of sys.path in bar.py when running from A revealed that
sys.path has A/B, not A.

Am I missing something here?

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

Reply via email to