[Tutor] Import error in UNO

Tiger12506 keridee at jayco.net
Tue Feb 5 23:24:04 CET 2008


> "muhamed niyas" <cmniyas at gmail.com> wrote
> 
>> Also i set 'C:\Program Files\OpenOffice.org 2.0\program' in PATH 
>> evvironment
>> variable.
> 
> Close but not quite.
> You need to set the module folder in your PYTHONPATH environment
> variable.
> 
> PATH is where the python interpreter lives
> PYTHONPATH is where your modules live

For a less intrusive approach you can
import sys
sys.path.append("path of containing folder here")


More information about the Tutor mailing list