Monday, 17 October 2016

pyqgis - Setting PythonPath



I want to use this script here Ortho Projection produces artifacts unfortunatley I cannot download the PlugIn since I work in QGIS 2.8.


It says, set the PYTHONPATH. I do not quite understand what that means... It sets the path to a folder, where python is supposed to look for something. So far, so good. But, is that something which I have to change permanently.


If I change it permanently, will my other site-packages still work?


Where do I have to change it?


In python when starting it from the console or in the console itself?


In my profile?


I am working on Mac 10.10


What I did so far is opening my .bash-profile and I added this peace PYTHONPATH=$PYTHONPATH:/Users/.../.../Python_Toolbox/qgis


As far as I understood it, that should be permanently, right?


But when I go into QGIS into the console and try to import XX it does not find it.





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...