Setting PYTHONPATH for compiled QGIS version on Linux

المشرف العام

Administrator
طاقم الإدارة
I'm trying to set the PYTHONPATH in order to be able to load the qgis classes in a python console (not the QGIS Python one).

I followed some resources I've found (PYQGIS Cookbook, and others) but I get still the same error message:

>>> import qgis.coreImportError: No module named qgis.coreI'm pretty sure the problem is that I have a compiled version of QGIS and of course the PATHs suggested are different.

The folder of my QGIS is:

/home/user/QGIS-masterI tried to add the following to the .bashrc file in order to have the PATH but nothing changed (still the error of above):

export PYTHONPATH=/home/user/QGIS-master/python/Someone has an idea of which is the correct PATH I have to export?

Thanks



أكثر...
 
أعلى