On 6/25/2010 2:20 PM Nathan Huesken said...
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?

IIRC, sys.path controls the search order. You could insert your preferred directory:

  sys.path.insert(0,"/my/import/module/path")

Emile






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

Reply via email to