Problems with import of modules

Farshid Lashkari lashkariNO at SPAMworldviz.com
Mon Jan 23 14:01:40 EST 2006


> How can I modify the python search-path from within the script, thus it 
> contains the doc directory?

Hi,

The sys.path variable is a list of strings that contains the current 
module search path. You can add your own path to this list:

import sys
sys.path.append('../')

-Farshid



More information about the Python-list mailing list