from .. import module
or
from ..module import foo

this is intended for use within packages.

see
http://www.python.org/dev/peps/pep-0328/

also search for
python relative import


- tom

Nathan Huesken wrote:
Hi,

Is it somehow possible to import modules from *.py files in a higher
level directory?
Intuitively I would do

import ../module

but that does not work.
How does it work?

Thanks!
Nathan

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

Reply via email to